diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-04-25 20:02:34 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-04-25 20:02:34 -0700 |
commit | 53e1261f789f4a2a6b780c28e3c9dbcb79260028 (patch) | |
tree | 33946e9f92df9b44db898a4578ac6e512981f7fe | |
parent | 8c714ee8ff6eb5e0030a3b12935512b82fd8b00e (diff) | |
download | txr-53e1261f789f4a2a6b780c28e3c9dbcb79260028.tar.gz txr-53e1261f789f4a2a6b780c28e3c9dbcb79260028.tar.bz2 txr-53e1261f789f4a2a6b780c28e3c9dbcb79260028.zip |
Pretty print filename in assertion.
* match.c (v_assert, h_assert): Use ~a rather than ~s
for c->curfile in assert message.
-rw-r--r-- | match.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3702,7 +3702,7 @@ static val v_assert(match_files_ctx *c) uw_throw(type, values); } else { if (c->curfile) - typed_error(assert_s, first_spec, lit("assertion (at ~s:~d)"), c->curfile, c->data_lineno, nao); + typed_error(assert_s, first_spec, lit("assertion (at ~a:~d)"), c->curfile, c->data_lineno, nao); typed_error(assert_s, first_spec, lit("assertion (line ~d)"), c->data_lineno, nao); } } @@ -3886,7 +3886,7 @@ static val h_assert(match_line_ctx *c) uw_throw(type, values); } else { if (c->file) - typed_error(assert_s, elem, lit("assertion (at ~s:~d)"), c->file, c->data_lineno, nao); + typed_error(assert_s, elem, lit("assertion (at ~a:~d)"), c->file, c->data_lineno, nao); typed_error(assert_s, elem, lit("assertion (line ~d)"), c->data_lineno, nao); } abort(); |