Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit aafa453

Browse files
committed
Removed error report for script errors since they pop up in the console.
1 parent 2f33aa5 commit aafa453

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Entities/MovableObject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ int MovableObject::ReadProperty(const std::string_view &propName, Reader &reader
352352
reader.ReportError("Failed to do necessary setup to add scripts while attempting to add the script with path " + scriptPath + ". This has nothing to do with your script, please report it to a developer.");
353353
break;
354354
case -5:
355-
reader.ReportError("The file with script path " + scriptPath + " could not be run. Please check that this is a valid Lua file.");
355+
// Error in lua file, this'll pop up in the console so no need to report an error through the reader.
356356
break;
357357
default:
358358
RTEAbort("Reached default case while adding script in INI. This should never happen!");

0 commit comments

Comments
 (0)