Skip to content

Do not strip out panic messages in debug builds#326

Merged
cmichi merged 2 commits into
masterfrom
at-panic-message
Aug 12, 2021
Merged

Do not strip out panic messages in debug builds#326
cmichi merged 2 commits into
masterfrom
at-panic-message

Conversation

@athei

@athei athei commented Aug 12, 2021

Copy link
Copy Markdown
Contributor

We should keep the panic messages for debug builds because they convey valuable information. Until Result based error handling is implemented that is even the only way of reacting to runtime errors (as opposed to programming errors for which panics are usually used).

@cmichi cmichi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

CI is currently failing, but just because the size of the Wasm blob increased in debug mode now (which is expected). Can you adapt the test?

@athei

athei commented Aug 12, 2021

Copy link
Copy Markdown
Contributor Author

Building that test in release mode now. That should fix it.

@cmichi cmichi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'll do a release soonish.

@cmichi
cmichi merged commit 7bc6097 into master Aug 12, 2021
@cmichi
cmichi deleted the at-panic-message branch August 12, 2021 13:22
cmichi added a commit that referenced this pull request Aug 12, 2021
HCastano pushed a commit that referenced this pull request Aug 12, 2021
* Add log output

* Add #326 to changelog

* Bump version

* Fix changelog
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