Mercurial Hosting > luan
diff core/src/luan/modules/Utils.java @ 578:60c549d43988
remove LuanState.exception()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 14 Jul 2015 17:40:48 -0600 |
parents | 5e7450ac27f2 |
children | 31926755689e |
line wrap: on
line diff
--- a/core/src/luan/modules/Utils.java Mon Jul 13 20:53:02 2015 -0600 +++ b/core/src/luan/modules/Utils.java Tue Jul 14 17:40:48 2015 -0600 @@ -20,7 +20,7 @@ private static void checkNotNull(LuanState luan,Object v,String expected) throws LuanException { if( v == null ) - throw luan.exception("bad argument #1 ("+expected+" expected, got nil)"); + throw new LuanException(luan,"bad argument #1 ("+expected+" expected, got nil)"); } public static void checkNotNull(LuanState luan,String s) throws LuanException {