diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-07-05 18:34:27 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-07-05 18:34:27 +0900 |
| commit | 2ef5d22b604711dba489b351fc3f2e6b4b44e5b1 (patch) | |
| tree | 34f2bb0791a2a4de2f4e5a9727e02482b0b8e9eb /src/error.c | |
| parent | b68e7a605ce09e72fe0e0734da1200c2d97ffe93 (diff) | |
| download | mruby-2ef5d22b604711dba489b351fc3f2e6b4b44e5b1.tar.gz mruby-2ef5d22b604711dba489b351fc3f2e6b4b44e5b1.zip | |
Put a space between error position and error message.
For readability's sake.
Diffstat (limited to 'src/error.c')
| -rw-r--r-- | src/error.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/error.c b/src/error.c index 4c6f62c7b..92f4911f6 100644 --- a/src/error.c +++ b/src/error.c @@ -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; } |
