Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-03-10 | Merge remote-tracking branch 'upstream/master' into path-info | John Ericson | |
2022-03-07 | Implement a suggestions mechanism | regnat | |
Each `Error` class now includes a set of suggestions, and these are printed by the top-level handler. | |||
2022-02-25 | Remove std::string alias (for real this time) | Eelco Dolstra | |
Also use std::string_view in a few more places. | |||
2022-01-17 | serialise.hh: Use std::string_view | Eelco Dolstra | |
2021-02-25 | Merge remote-tracking branch 'upstream/master' into path-info | John Ericson | |
2021-01-21 | Improve error formatting | Eelco Dolstra | |
Changes: * The divider lines are gone. These were in practice a bit confusing, in particular with --show-trace or --keep-going, since then there were multiple lines, suggesting a start/end which wasn't the case. * Instead, multi-line error messages are now indented to align with the prefix (e.g. "error: "). * The 'description' field is gone since we weren't really using it. * 'hint' is renamed to 'msg' since it really wasn't a hint. * The error is now printed *before* the location info. * The 'name' field is no longer printed since most of the time it wasn't very useful since it was just the name of the exception (like EvalError). Ideally in the future this would be a unique, easily googleable error ID (like rustc). * "trace:" is now just "…". This assumes error contexts start with something like "while doing X". Example before: error: --- AssertionError ---------------------------------------------------------------------------------------- nix at: (7:7) in file: /home/eelco/Dev/nixpkgs/pkgs/applications/misc/hello/default.nix 6| 7| x = assert false; 1; | ^ 8| assertion 'false' failed ----------------------------------------------------- show-trace ----------------------------------------------------- trace: while evaluating the attribute 'x' of the derivation 'hello-2.10' at: (192:11) in file: /home/eelco/Dev/nixpkgs/pkgs/stdenv/generic/make-derivation.nix 191| // (lib.optionalAttrs (!(attrs ? name) && attrs ? pname && attrs ? version)) { 192| name = "${attrs.pname}-${attrs.version}"; | ^ 193| } // (lib.optionalAttrs (stdenv.hostPlatform != stdenv.buildPlatform && !dontAddHostSuffix && (attrs ? name || (attrs ? pname && attrs ? version)))) { Example after: error: assertion 'false' failed at: (7:7) in file: /home/eelco/Dev/nixpkgs/pkgs/applications/misc/hello/default.nix 6| 7| x = assert false; 1; | ^ 8| … while evaluating the attribute 'x' of the derivation 'hello-2.10' at: (192:11) in file: /home/eelco/Dev/nixpkgs/pkgs/stdenv/generic/make-derivation.nix 191| // (lib.optionalAttrs (!(attrs ? name) && attrs ? pname && attrs ? version)) { 192| name = "${attrs.pname}-${attrs.version}"; | ^ 193| } // (lib.optionalAttrs (stdenv.hostPlatform != stdenv.buildPlatform && !dontAddHostSuffix && (attrs ? name || (attrs ? pname && attrs ? version)))) { | |||
2021-01-15 | Merge pull request #4240 from bburdette/2259-error-message | Domen Kožar | |
2259 error message - "auto-call" error | |||
2020-12-10 | Add lvlNotice log level | Eelco Dolstra | |
This is like syslog's LOG_NOTICE: "normal, but significant, condition". | |||
2020-11-11 | usage example location | Ben Burdette | |
2020-10-12 | Merge remote-tracking branch 'upstream/master' into path-info | John Ericson | |
2020-10-07 | Use PathReferences more widely | John Ericson | |
2020-10-07 | Formatting | Eelco Dolstra | |
2020-07-20 | Add UnimplementedError to ease grepping for these | Carlo Nucera | |
2020-07-07 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-07-07 | Fix coverage build | Eelco Dolstra | |
2020-07-06 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-06-30 | comments and cleanup | Ben Burdette | |
2020-06-30 | Merge branch 'master' into add-trace | Ben Burdette | |
2020-06-30 | check for a null symbol | Ben Burdette | |
2020-06-27 | showtrace as function arg | Ben Burdette | |
2020-06-25 | showTrace flag for ErrorInfo; showTrace test. | Ben Burdette | |
2020-06-24 | add trace test; error formatting refinements | Ben Burdette | |
2020-06-24 | convenience form of addTrace | Ben Burdette | |
2020-06-24 | repl indenting | Ben Burdette | |
2020-06-24 | nixCode -> LinesOfCode | Ben Burdette | |
2020-06-23 | use plain errPos instead of nixCode; fix tests | Ben Burdette | |
2020-06-19 | addErrorTrace | Ben Burdette | |
2020-06-18 | addTrace | Ben Burdette | |
2020-06-18 | Merge branch 'master' into caveman-LOCs | Ben Burdette | |
2020-06-17 | Merge remote-tracking branch 'origin/master' into flakes | Eelco Dolstra | |
2020-06-15 | Add mising #include for strerror | John Ericson | |
2020-06-15 | Get rid of explicit ErrorInfo constructors | Eelco Dolstra | |
2020-06-08 | Merge branch 'errors-phase-2' into caveman-LOCs | Ben Burdette | |
2020-06-04 | add some comments | Ben Burdette | |
2020-06-02 | remove extra space in SysErrors | Ben Burdette | |
2020-05-20 | print LOC for stdin, string args | Ben Burdette | |
2020-05-14 | fix compile errors | Ben Burdette | |
2020-05-11 | fixes to merged code | Ben Burdette | |
2020-05-08 | add pos to errorinfo, remove from hints | Ben Burdette | |
2020-05-07 | pretending to be const | Ben Burdette | |
2020-05-06 | implement SysError errno handling | Ben Burdette | |
2020-05-03 | convert some printError calls to logError | Ben Burdette | |
2020-04-29 | errorinfo constructor test | Ben Burdette | |
2020-04-28 | Error classname as name | Ben Burdette | |
2020-04-27 | astyle format | Ben Burdette | |
2020-04-26 | error.hh | Ben Burdette | |
2020-04-21 | add ErrorInfo to BaseError | Ben Burdette | |
2020-04-17 | demoing other error levels than warn/error; rename line and file fields in ↵ | Ben Burdette | |
errPos | |||
2020-04-17 | logError, logWarning; Logger functions; switch to Verbosity enum | Ben Burdette | |
2020-04-16 | iomanip no longer needed | Ben Burdette | |