Comments (2)
Yea, that is a good point. I guess the current code base doesn't not have this situation. Your PR does not have this change, so I can't accept that. I will make this change.
from service.
I looked at this closer. The error will never be wrapped.
if err := validate.Struct(val); err != nil {
// Use a type assertion to get the real error value.
verrors, ok := err.(validator.ValidationErrors)
if !ok {
return err
}
Notice the error we are evaulating is coming from the validate.Struct
call. This is not an error we are constructing and could be wrapped.
from service.
Related Issues (20)
- Wrong environment variable name for migrate and seed sections of makefile HOT 1
- modular HOT 7
- Write regex! HOT 6
- Naming files HOT 1
- refine make built-in function allocates add len HOT 2
- usertoken HOT 1
- pass in dbtest tokenv1 HOT 1
- user role question HOT 4
- More complicated role HOT 2
- Unit test HOT 5
- layer called userapp! HOT 4
- error when run multiple instances HOT 1
- Why, when we want to edit a field or change its type, the changes are not applied in the database with the migration command. HOT 7
- Tests HOT 5
- Question: Respond before commit transaction HOT 3
- Add account verification link HOT 3
- Transaction error 500 when testing transaction with validation error 400 HOT 2
- Code generates HOT 1
- Question: API integration HOT 2
- It is suggested to improve the naming of returned errors from the database layer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from service.