diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2014-01-11 22:10:50 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2014-01-15 19:28:41 +0100 |
commit | 97c9fdf31acad6c38a02e6433787749d7ac143ab (patch) | |
tree | 474f291710143ac2891323b382faf200fc1f18a0 /src/rebar_reltool.erl | |
parent | 5d2b9ba23f8e32ad4f99850a71c62d8b7df262d8 (diff) |
Fix basho/rebar#388
If the syntax error is in a .hrl file, then the reported error message
is not as useful because it's not clear which .erl file was being
compiled. We can fix that easily by first printing what source file was
being processed. We don't change the actual error message, so this will
still work with your editor of choice for jumping to the right line.
Before
------
Success:
Compiled src/foo.erl
Failure:
include/foo.hrl:10: syntax error [...]
After
-----
Success:
Compiled src/foo.erl
Failure:
Compiling src/foo.erl failed:
include/foo.hrl:10: syntax error [...]
Diffstat (limited to 'src/rebar_reltool.erl')
0 files changed, 0 insertions, 0 deletions