Comments (1)
Potential solutions:
Assume that any .Error() strings that are just matching the pattern ^<\w+>$
are to be ignored.
- Pros: simple
- Cons: if anyone else wants to implement Fault decorators, this is a detail you can't enforce easily
Write a simple interface that, if satisfied, indicates to Fault that the type is just a container and does not provide an error string of any value.
- Pros: also simple, maybe more idiomatic (?)
- Cons: bit of an abuse of interfaces, it's more of a signal decorator on the type than an actual interface into functionality
from fault.
Related Issues (20)
- Make fault less opinionated on displaying "stack" trace and error messages together HOT 7
- Avoid dependencies HOT 2
- Refactor Flatten to first flatten the tree and then filter the results HOT 3
- Enable locations to be generated for the caller in libraries HOT 8
- Make fault.Wrap nil tolerant HOT 1
- Add fault for sql queries and parameters HOT 1
- More cleverly split up glued error messages
- Support Unwrap for multiple errors
- Underlying map is modified globally in fctx
- Not getting the expected output HOT 18
- Pass ...Wrapper list to New constructor
- Redesign fmsg to be less verbose and more useful. HOT 3
- Support multiple ftag HOT 5
- Support arbitrary value type in fctx metadata HOT 5
- v1.0 Roadmap - consolidate built-in wrappers and implement API and DX improvements. HOT 3
- De-duplication logic causes some sentinel error patterns to result in error chain losses
- Message missing due to incomplete Format implementation
- Error prints do not include external errors in some cases HOT 1
- Play nicely with multierror libraries HOT 6
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 fault.