Mercurial Hosting > luan
comparison core/src/luan/impl/LuanCompiler.java @ 460:b48cfa14ba60
improve stack trace
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 06 May 2015 14:32:29 -0600 |
parents | 30544d1a9cbf |
children | 92c3d22745b8 |
comparison
equal
deleted
inserted
replaced
459:30544d1a9cbf | 460:b48cfa14ba60 |
---|---|
34 return fnDef; | 34 return fnDef; |
35 } | 35 } |
36 return parser.RequiredModule(); | 36 return parser.RequiredModule(); |
37 } catch(ParseException e) { | 37 } catch(ParseException e) { |
38 //e.printStackTrace(); | 38 //e.printStackTrace(); |
39 LuanElement le = new LuanSource.CompilerElement(parser.source); | 39 throw luan.exception( e.getFancyMessage() ); |
40 throw luan.bit(le).exception( e.getFancyMessage() ); | |
41 } | 40 } |
42 } | 41 } |
43 | 42 |
44 public static LuanState newLuanState() { | 43 public static LuanState newLuanState() { |
45 return new LuanStateImpl(); | 44 return new LuanStateImpl(); |