Gracefully handling all nix evaluation failures. #464
Labels
No Label
backups
blog
bootstrapping
bug
changes-requested
cli
documentation
duplicate
enhancement
facts
help wanted
invalid
Inventory
low_prio
manager
modules
needs-review
networking
packaging
question
secrets
template
test
tooling
user-testing
vm
wontfix
No Milestone
No project
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: clan/clan-core#464
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently many nix runtime / evaltime failures result in "Internal Server Error 500"
We should at least catch all those errors and gracefully report them without crashing the server.
Ideally every endpoint should handle its own errors, but we should implement some "catch all" generic failure, if the specific endpoint has no specific error handling yet.
This is now fixed for the schema endpoint, but there is no generic mechanism in place that ensures this for all evaluations. We might want to make a
nix_eval
function which always throws the correct error internally.