Fix off by one error in script error reporting.
parent
1dc03e5c4f
commit
85198a45cb
|
@ -118,7 +118,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
|
||||||
emessage = emessage.Substring(slinfo.Length+2);
|
emessage = emessage.Substring(slinfo.Length+2);
|
||||||
|
|
||||||
message = String.Format("({0},{1}) {2}",
|
message = String.Format("({0},{1}) {2}",
|
||||||
e.slInfo.lineNumber - 2,
|
e.slInfo.lineNumber - 1,
|
||||||
e.slInfo.charPosition - 1, emessage);
|
e.slInfo.charPosition - 1, emessage);
|
||||||
|
|
||||||
throw new Exception(message);
|
throw new Exception(message);
|
||||||
|
|
Loading…
Reference in New Issue