changeset 1775:e380ab6c0c78

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 27 Jul 2023 17:52:52 -0600
parents 764723436f05
children da85925fea9c
files src/luan/modules/Parsers.luan
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/modules/Parsers.luan	Thu Jul 27 17:24:49 2023 -0600
+++ b/src/luan/modules/Parsers.luan	Thu Jul 27 17:52:52 2023 -0600
@@ -36,9 +36,9 @@
 		local java = e.java.getCause()
 		if java~=nil and java.instanceof(ParseException) then
 			e.message = java.getSuperMessage()
-			e.text = java.text or error()
-			e.error_index = java.errorIndex or error()
-			e.high_index = java.highIndex or error()
+			e.text = java.text
+			e.error_index = java.errorIndex
+			e.high_index = java.highIndex
 		end
 		e.throw()
 	end