Put a space between error position and error message.

For readability's sake.
parent b68e7a60
......@@ -151,14 +151,14 @@ exc_inspect(mrb_state *mrb, mrb_value exc)
str = mrb_str_new_cstr(mrb, cname);
if (mrb_string_p(file) && mrb_fixnum_p(line)) {
if (append_mesg) {
str = mrb_format(mrb, "%S:%S:%S (%S)", file, line, mesg, str);
str = mrb_format(mrb, "%S:%S: %S (%S)", file, line, mesg, str);
}
else {
str = mrb_format(mrb, "%S:%S:%S", file, line, str);
str = mrb_format(mrb, "%S:%S: %S", file, line, str);
}
}
else if (append_mesg) {
str = mrb_format(mrb, "%S:%S", str, mesg);
str = mrb_format(mrb, "%S: %S", str, mesg);
}
return str;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment