`session_t::read_data` did not set context.pathname to `/dev/stdin` for the special case `-f -`. I chose to adjust `source_context` too as there is no sensible context if no file name is provided.
12 lines
245 B
Text
12 lines
245 B
Text
; Check that error reporting works for "-f -"
|
|
|
|
2012/02/30 * Test
|
|
a 1
|
|
b
|
|
test -f - reg -> 1
|
|
__ERROR__
|
|
While parsing file "/dev/stdin", line 3:
|
|
While parsing transaction:
|
|
<no source context>
|
|
Error: Day of month is not valid for year
|
|
end test
|