You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an assertion fails in an event macro (onTokenMove, onCampaignLoad, etc.), there is an error message printed to chat rather than the normal assert messaging.
To Reproduce
Add this to a lib:token's onCampaignLoad:
[h: assert(0, "This is a message", 0)]
Save and reload the campaign.
Observe this error in chat:
Event continuing after error running onCampaignLoad@Lib:Elf: This is a message
Expected Behaviour
The assertion failure should be printed plainly without being treated as an unexpected failure in the event handler. I.e., this is all that should be sent to chat:
This is a message
Or if the prefix is enabled:
Macro-defined error: This is a message
Screenshots
No response
MapTool Info
1.13.2
Desktop
Linux Mint 21.2
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Describe the Bug
When an assertion fails in an event macro (
onTokenMove
,onCampaignLoad
, etc.), there is an error message printed to chat rather than the normal assert messaging.To Reproduce
onCampaignLoad
:Expected Behaviour
The assertion failure should be printed plainly without being treated as an unexpected failure in the event handler. I.e., this is all that should be sent to chat:
Or if the prefix is enabled:
Screenshots
No response
MapTool Info
1.13.2
Desktop
Linux Mint 21.2
Additional Context
No response
The text was updated successfully, but these errors were encountered: