diff core/src/luan/modules/StringLuan.java @ 578:60c549d43988

remove LuanState.exception()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 14 Jul 2015 17:40:48 -0600
parents 4723d22062ce
children a140be489a72
line wrap: on
line diff
--- a/core/src/luan/modules/StringLuan.java	Mon Jul 13 20:53:02 2015 -0600
+++ b/core/src/luan/modules/StringLuan.java	Tue Jul 14 17:40:48 2015 -0600
@@ -202,7 +202,7 @@
 			m.appendTail(sb);
 			return new Object[]{ sb.toString(), i };
 		}
-		throw luan.exception( "bad argument #3 to 'gsub' (string/function/table expected)" );
+		throw new LuanException(luan, "bad argument #3 to 'gsub' (string/function/table expected)" );
 	}
 
 	// note - String.format() is too stupid to convert between ints and floats.