Skip to content
Snippets Groups Projects
Unverified Commit 59ac676d authored by Benjamin Cumming's avatar Benjamin Cumming Committed by GitHub
Browse files

correctly forward wrapped error type (#1556)

The C++ label parse code was returning the error type in the value part of a `parse_hopefully<std::any>`,
and not in the error slot.
parent a304d5ac
No related branches found
No related tags found
......@@ -352,7 +352,7 @@ parse_hopefully<std::any> eval(const s_expr& e) {
// Evaluate the arguments, and return error state if an error occurred.
auto args = eval_args(e.tail());
if (!args) {
return args.error();
return util::unexpected(args.error());
}
// Find all candidate functions that match the name of the function.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment