[Nice-commit] Nice/src/bossa/syntax methodbody.nice,1.14,1.15
Brought to you by:
bonniot
From: Daniel B. <bo...@us...> - 2005-03-13 03:08:24
|
Update of /cvsroot/nice/Nice/src/bossa/syntax In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5288/src/bossa/syntax Modified Files: methodbody.nice Log Message: Avoid dumping cryptic exceptions on the poor user! Index: methodbody.nice =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/methodbody.nice,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** methodbody.nice 11 Mar 2005 17:35:52 -0000 1.14 --- methodbody.nice 13 Mar 2005 03:08:13 -0000 1.15 *************** *** 413,417 **** } catch(mlsub.typing.TypingEx e) { ! throw User.error(name, "Type error in method body \""+name+"\":\n"+e); } --- 413,420 ---- } catch(mlsub.typing.TypingEx e) { ! if (Debug.powerUser) ! throw User.error(name, "Type error in method body \""+name+"\":\n"+e); ! else ! throw User.error(name, "Type error in method implementation"); } |