aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops/fromTOML.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-06-18 21:38:15 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-06-18 21:38:15 +0000
commit40526fbea56a8006eb7f1758d461a5acbe9a1694 (patch)
tree5d74492a86f28fb7183897dc2a6d7baf2d24f7f1 /src/libexpr/primops/fromTOML.cc
parent6dd471ebf6b9a4996405398093ccb371b8abdf2f (diff)
parent6c000eed80565d83d596da800ca0db92e248342e (diff)
Merge remote-tracking branch 'upstream/master' into enum-class
Diffstat (limited to 'src/libexpr/primops/fromTOML.cc')
-rw-r--r--src/libexpr/primops/fromTOML.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libexpr/primops/fromTOML.cc b/src/libexpr/primops/fromTOML.cc
index c43324dbb..7615d1379 100644
--- a/src/libexpr/primops/fromTOML.cc
+++ b/src/libexpr/primops/fromTOML.cc
@@ -81,7 +81,10 @@ static void prim_fromTOML(EvalState & state, const Pos & pos, Value * * args, Va
try {
visit(v, parser(tomlStream).parse());
} catch (std::runtime_error & e) {
- throw EvalError("while parsing a TOML string at %s: %s", pos, e.what());
+ throw EvalError({
+ .hint = hintfmt("while parsing a TOML string: %s", e.what()),
+ .nixCode = NixCode { .errPos = pos }
+ });
}
}