summaryrefslogtreecommitdiff
path: root/src/gram.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/gram.y')
-rw-r--r--src/gram.y8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gram.y b/src/gram.y
index 662c9e8..d2b2fdc 100644
--- a/src/gram.y
+++ b/src/gram.y
@@ -74,14 +74,14 @@ stmtlist : stmt
stmt : /* empty */ eol
{
- if (run_last_command () && variable_is_set ("errorexit"))
+ if (run_last_command ())
{
YYABORT;
}
}
| command arglist eol
{
- if (run_command ($1, &$2) && variable_is_set ("errorexit"))
+ if (run_command ($1, &$2))
{
YYABORT;
}
@@ -323,6 +323,10 @@ asgn : T_IDENT
case VAR_ERR_BADVALUE:
lerror (&@1, _("%s: setting is not allowed"), $1);
break;
+
+ case VAR_ERR_GDBM:
+ dberror ("%s", _("can't set variable"));
+ break;
default:
lerror (&@1, _("unexpected error setting %s: %d"), $1, rc);