[Nice-commit] Nice/src/gnu/expr Compilation.java,1.17,1.18
Brought to you by:
bonniot
|
From: <bo...@us...> - 2003-02-20 14:58:42
|
Update of /cvsroot/nice/Nice/src/gnu/expr
In directory sc8-pr-cvs1:/tmp/cvs-serv10332/src/gnu/expr
Modified Files:
Compilation.java
Log Message:
Allow error messages to be displayed during code generation.
Index: Compilation.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/gnu/expr/Compilation.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** Compilation.java 22 Oct 2002 18:24:38 -0000 1.17
--- Compilation.java 20 Feb 2003 14:58:37 -0000 1.18
***************
*** 1573,1576 ****
--- 1573,1580 ----
catch (RuntimeException ex)
{
+ // Rethrow the error, since it is better handled at the Nice level.
+ if (true)
+ throw ex;
+
// Try to produce a localized error message.
error('f', "Internal compiler exception: "+ex);
|