Merge lp:~paul-lucas/zorba/pjl-misc into lp:zorba

Proposed by Paul J. Lucas
Status: Merged
Approved by: Matthias Brantner
Approved revision: 11217
Merged at revision: 11456
Proposed branch: lp:~paul-lucas/zorba/pjl-misc
Merge into: lp:zorba
Diff against target: 21 lines (+2/-2)
1 file modified
src/compiler/parser/symbol_table.cpp (+2/-2)
To merge this branch: bzr merge lp:~paul-lucas/zorba/pjl-misc
Reviewer Review Type Date Requested Status
Matthias Brantner Approve
Paul J. Lucas Approve
Review via email: mp+164062@code.launchpad.net

Commit message

I forgot to commit this file before the previous merge.

Better string-to-integer conversion exception catching -- fixes 3 FOTS tests.

Description of the change

I forgot to commit this file before the previous merge.

Better string-to-integer conversion exception catching -- fixes 3 FOTS tests.

To post a comment you must log in.
lp:~paul-lucas/zorba/pjl-misc updated
11217. By Paul J. Lucas

Merge from trunk.

Revision history for this message
Paul J. Lucas (paul-lucas) :
review: Approve
Revision history for this message
Matthias Brantner (matthias-brantner) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job pjl-misc-2013-05-16T17-01-49.255Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/compiler/parser/symbol_table.cpp'
2--- src/compiler/parser/symbol_table.cpp 2013-05-15 23:22:01 +0000
3+++ src/compiler/parser/symbol_table.cpp 2013-05-16 02:09:27 +0000
4@@ -267,7 +267,7 @@
5 try {
6 return new xs_double(text);
7 }
8- catch ( std::range_error const& ) {
9+ catch ( std::exception const& ) {
10 return NULL;
11 }
12 }
13@@ -277,7 +277,7 @@
14 try {
15 return new xs_integer(text);
16 }
17- catch ( std::invalid_argument const& ) {
18+ catch ( std::exception const& ) {
19 return NULL;
20 }
21 }

Subscribers

People subscribed via source and target branches