Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NETSCRIPT: Update ScriptDeath to extend Error (bitburner-official#1685)
* Update ScriptDeath to extend Error - Rename the "name" property to "hostname" so that it doesn't clash with inherited Error.name property. - Extend Error, this way if a user ends up catching it they can: - Test the type of error caught (name) and ignore it if desired - Get a stack trace and find out where they went wrong - Not require special case error printing logic for catching things that are neither strings, nor Error objects. It is possible (but unlikely) that this could make killing scripts slower in some circumstances.
- Loading branch information