Skip to content

Update error handler#1557

Open
RedRafe wants to merge 1 commit intoRefactorio:developfrom
RedRafe:error-handler
Open

Update error handler#1557
RedRafe wants to merge 1 commit intoRefactorio:developfrom
RedRafe:error-handler

Conversation

@RedRafe
Copy link
Contributor

@RedRafe RedRafe commented Mar 9, 2026

Removes the double log and replaces it with full stack trace of the error

end

function Public.error_handler(err)
return trace(err)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does trace do in factorio? Does it go into the logs? If so do we need both trace and log(result) in event_core and others?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lua 5.2 debug::traceback it only returns a string with a traceback of the call stack, which is then logged by the log function

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants