-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: ✨ switched to new error systems, added
is_server!
, and impro…
…ved render function return types (#33) * refactor: ♻️ switched to `thiserror` and `anyhow` in the CLI Error reporting is now much nicer. * refactor: ♻️ migrated core to new error systems * refactor: ♻️ migrated actix web integration to new error systems * fix: 🐛 used absolute path for `Rc` in one variant of `t!` * feat(templates): ✨ added `is_server!` macro to check if running on server or client * fix: 🐛 fixed error `#[from]` for `ClientError` Was `FetchError`, should be `ClientError`. * feat: ✨ made error formatting use `fmterr` We don't need `anyhow` anymore. * feat(templates): ✨ allowed usage of any error type in render functions Before, only `String` was allowed as an error type. This also makes `?` usable. BREAKING CHANGE: `StringResult`/`StringResultWithCause` are replaced by `RenderFnResult`/`RenderFnResultWithCause` * fix: 🐛 fixed newlines/tabs in initial state causing serialization errors We're now using JS raw strings, escaping as necessary, and then escaping control characters in the shell. * docs(book): 📝 updated docs fro new error systems
- Loading branch information
1 parent
a847132
commit 53bb61e
Showing
50 changed files
with
1,066 additions
and
806 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.