summaryrefslogtreecommitdiffhomepage
path: root/src/error.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-07-16 21:56:00 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-07-16 21:56:00 +0900
commit4f37adfd5e4489da5d6299d15976d983596e0d34 (patch)
tree89435ad2bf6a662d41e0b87a5ca9978820095bc7 /src/error.c
parent31d085e795beef6472f6c8fae814fc73d311263b (diff)
parent938ed044f4e053c1832be3868230d80ccba190e8 (diff)
downloadmruby-4f37adfd5e4489da5d6299d15976d983596e0d34.tar.gz
mruby-4f37adfd5e4489da5d6299d15976d983596e0d34.zip
Merge pull request #2887 from cremno/use-mrb_str_cat_str-instead-of-mrb_str_append
use mrb_str_cat_str() instead of mrb_str_append()
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/error.c b/src/error.c
index 20c63bd43..359e5737b 100644
--- a/src/error.c
+++ b/src/error.c
@@ -152,7 +152,7 @@ exc_inspect(mrb_state *mrb, mrb_value exc)
mrb_str_append(mrb, str, line);
mrb_str_cat_lit(mrb, str, ": ");
if (append_mesg) {
- mrb_str_append(mrb, str, mesg);
+ mrb_str_cat_str(mrb, str, mesg);
mrb_str_cat_lit(mrb, str, " (");
}
mrb_str_cat_cstr(mrb, str, mrb_obj_classname(mrb, exc));
@@ -165,7 +165,7 @@ exc_inspect(mrb_state *mrb, mrb_value exc)
str = mrb_str_new_cstr(mrb, cname);
mrb_str_cat_lit(mrb, str, ": ");
if (append_mesg) {
- mrb_str_append(mrb, str, mesg);
+ mrb_str_cat_str(mrb, str, mesg);
}
else {
mrb_str_cat_cstr(mrb, str, cname);