mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 13:33:28 +01:00
disko2: Move to error codes and dedicated error rendering
This splits the concern of how to display errors off from the business logic. This should make it easier to test functionality and allow us to concentrate on how to actually display and communicate errors to the user. At some point this might also make i18n feasible, because you only have to swap out a single file. This hasn't quite fixed the debug/trace story yet. It should be possible to simply insert a "debug" command into any pipeline and see the context and state at that point.
This commit is contained in:
1 parent
684adb7e64
commit
f2618b5490
4 files changed
+169
-42
No files matched your search
+1
-1
@@ -1,2 +1,2 @@
|
||||
export use eval-config.nu [eval-disko-file eval-flake]
|
||||
export use errors.nu [exit-on-error p_err p_info p_help]
|
||||
export use errors.nu [exit-on-error print-info print-help]
|
||||
Reference in new issue
Block a user