Better error handling

This commit is contained in:
2019-01-22 12:28:21 +01:00
parent cd6384614b
commit 284ba2cf54
8 changed files with 43 additions and 25 deletions

View File

@@ -64,7 +64,7 @@ namespace Upsilon.BaseTypes.UserData
}
else
{
throw new ScriptRuntimeException(
throw new ScriptRuntimeException(null,
$"Tried indexing a CSharp list with a value that's not an integer. Value: {scriptIndex.ToCSharpObject()}",
span, diagnostics.ScriptString.GetSpan(span));
}