eternagame / EternaJS

Eterna game/RNA design interface
Other
12 stars 10 forks source link

Provide info about script constraint when encountering an error #793

Closed luxaritas closed 3 months ago

luxaritas commented 3 months ago

If a SCRIPT constraint errors, we currently throw an error with the error details we were provided. However, this can be opaque, especially in Chrome where you can encounter errors like "Cannot read properties of undefined" without the name of the variable. Now, we explicitly note that we've encountered an error in a SCRIPT constraint and which script it was. Since the error could be caused by a misconfiguration by the puzzle author, this also may help the puzzle author identify and troubleshoot the issue.