mirror of
https://github.com/ruuda/rcl.git
synced 2025-12-23 04:47:19 +00:00
This fixes a longstanding issue where reporting errors that we have to blame on just the document's result in general got blamed on its full span, which is often a comment and not the offending value. Now we blame it on the inner body expression, which is more natural.
9 lines
204 B
Text
9 lines
204 B
Text
// Note, this is an unserializable function, we don't call it!
|
|
std.read_file_utf8
|
|
|
|
# output:
|
|
stdin:2:1
|
|
╷
|
|
2 │ std.read_file_utf8
|
|
╵ ^~~~~~~~~~~~~~~~~~
|
|
Error: Functions cannot be exported as json.
|