summaryrefslogtreecommitdiff
path: root/plugins/libedit/libedit-main.c
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2011-03-09 17:43:23 +0900
committerAkira TAGOH <akira@tagoh.org>2011-03-09 17:43:23 +0900
commit11bf96d749381be3d763d89b8dd72778cdeebfbb (patch)
tree02893112a10908f7512463ea4eff174c8ccd4caa /plugins/libedit/libedit-main.c
parentb277c3c5d371521d51ef2ff185f820985e7c680b (diff)
cleanup
Diffstat (limited to 'plugins/libedit/libedit-main.c')
-rw-r--r--plugins/libedit/libedit-main.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/libedit/libedit-main.c b/plugins/libedit/libedit-main.c
index 881a78c..7c6e2b1 100644
--- a/plugins/libedit/libedit-main.c
+++ b/plugins/libedit/libedit-main.c
@@ -130,12 +130,10 @@ DEFUNC_OPER (private_loadhistory)
arg0 = hg_stack_index(ostack, 0);
if (!HG_IS_QSTRING (arg0)) {
- hg_vm_set_error(vm, qself, HG_e_typecheck);
- return FALSE;
+ hg_error_return (HG_STATUS_FAILED, HG_e_typecheck);
}
s = HG_VM_LOCK (vm, arg0);
if (s == NULL) {
- hg_vm_set_error(vm, qself, HG_e_VMerror);
return FALSE;
}
cstr = hg_string_get_cstr(s);
@@ -170,12 +168,10 @@ DEFUNC_OPER (private_savehistory)
arg0 = hg_stack_index(ostack, 0);
if (!HG_IS_QSTRING (arg0)) {
- hg_vm_set_error(vm, qself, HG_e_typecheck);
- return FALSE;
+ hg_error_return (HG_STATUS_FAILED, HG_e_typecheck);
}
s = HG_VM_LOCK (vm, arg0);
if (s == NULL) {
- hg_vm_set_error(vm, qself, HG_e_VMerror);
return FALSE;
}
cstr = hg_string_get_cstr(s);