Comments (6)
One day. Maybe I'll use https://github.com/dtolnay/anyhow instead.
from ufofmt.
There are also some other crates for easier error handling, see e.g. https://rust-cli.github.io/book/tutorial/errors.html.
from ufofmt.
Thoughts about whether we need to implement much of the custom error type / handling here? Most of the error string reporting will come from the custom types in the norad lib and we simply spit out the file path involved and the error message from the library error.
from ufofmt.
You could make an error type that is basically
enum Error {
UfoError(norad::Error),
MyFormattingError(something),
// ...
}
The Display trait could then just pass through whatever the norad error does.
from ufofmt.
You could make an error type that is basically
enum Error { UfoError(norad::Error), MyFormattingError(something), // ... }The Display trait could then just pass through whatever the norad error does.
I like it! Do you want to add this?
from ufofmt.
from ufofmt.
Related Issues (14)
- Improve invalid source path error messages HOT 2
- Evaluate UFO source format diffs across commonly used UFO serializers HOT 22
- Set up clippy for CI HOT 2
- Add option(s) to write to a different out UFO directory path
- Release on crates.io HOT 4
- Support custom indentation space formatting in write files HOT 5
- Support custom single / double quote formatting in write files HOT 8
- Remove validators module
- norad default UFO serialization format HOT 5
- Serialize consistent cross-platform line endings across plist, glif, and feature files HOT 4
- Normalize UFO with f64 floating point numbers (conversion from f32) HOT 2
- Add option to limit floating point value precision
- Display chained errors HOT 12
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 ufofmt.