mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Make error messages with location info consistent
This commit is contained in:
parent
7b079d36d3
commit
7dd6ddfc71
1 changed files with 4 additions and 3 deletions
|
@ -122,11 +122,12 @@
|
|||
Cyc_check_str(data, msg);
|
||||
p = ((port_type *)port);
|
||||
if (Cyc_is_string(filename) == boolean_t) {
|
||||
snprintf(buf, 1023, \"(%s line %d, column %d): %s\",
|
||||
string_str(filename), p->line_num, p->col_num,
|
||||
snprintf(buf, 1023, \"at line %d, column %d of %s: %s\",
|
||||
p->line_num, p->col_num,
|
||||
string_str(filename),
|
||||
string_str(msg));
|
||||
} else {
|
||||
snprintf(buf, 1023, \"(line %d, column %d): %s\",
|
||||
snprintf(buf, 1023, \"at line %d, column %d: %s\",
|
||||
p->line_num, p->col_num, string_str(msg));
|
||||
}
|
||||
Cyc_rt_raise_msg(data, buf);")
|
||||
|
|
Loading…
Add table
Reference in a new issue