[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [abakus] src/common: display error text on error, instead of last result
From: Mathias Kraus <k.hias () gmx ! de>
Date: 2013-12-06 20:36:40
Message-ID: E1Vp28e-0003bh-4O () scm ! kde ! org
[Download RAW message or body]
Git commit 1c3d6197e375cdd00c75499d20716b77ca2589e8 by Mathias Kraus.
Committed on 06/12/2013 at 20:35.
Pushed by mkraus into branch 'master'.
display error text on error, instead of last result
M +5 -0 src/common/parser.yy
http://commits.kde.org/abakus/1c3d6197e375cdd00c75499d20716b77ca2589e8
diff --git a/src/common/parser.yy b/src/common/parser.yy
index f86af81..01acfd5 100644
--- a/src/common/parser.yy
+++ b/src/common/parser.yy
@@ -301,6 +301,11 @@ TERM: NUMBER NUMBER {
YYABORT;
}
=
+S: error {
+ Result::setLastResult(i18n("Sorry, I can't figure it out."));
+ YYABORT;
+}
+
/**
* Here be the standard calculator-parsing part. Nothing here should be t=
oo
* fancy.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic