Due to issues with WASM backend, the built-in panic and abort functions in MoonBit crash the program without providing any message or indication of where the error occurred. It's annoying to have to implement a local method for every project.
This module provides utilities to stop program execution with a message and callsite location, as a temporary workaround until MoonBit's built-in functions are improved.