Skip to content

Runtime errors are not automatically wrapped into /exceptions inside try/catch blocks #2636

Description

@tontyGH

From the DM reference:

This datum is created automatically when a runtime error is encountered, if it happens within a try/catch block or you have defined a global error handler with world.Error().

This codeblock will work fine in DM, but not in OpenDream.

try
  CRASH("hi")
catch(var/exception/e)
  world.log << e.name

This may break error handling in some DM projects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RuntimeInvolves the OpenDream server/runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions