Update error: error in error handling

I discovered my game crashes when using Lua’s native error()method, but the more impactful part is that it doesn’t show the string passed to the method, but instead throws a different error message with a different stack (Update error: error in error handling). This made tracking down this issue a bit of a headache :sweat_smile:

I’m also not 100% sure if this worked before, but given that pd-achievements has some uses of error() in its source, I think it did at one point?

  • Windows SDK 3.0.2
  • OS 3.0.2

If you use error()it’s expected that you’re wanting to abort the application, it has always worked that way. The message string is logged in the debug console while in the debugger. This isn’t a function you’d typically use in production code.

1 Like

Ahhh. I see that messages are indeed logged in the simulator, so I think I happened to have an error that was only occurring in my prod builds which likely caused my confusion.

Thanks for helping clear that up!