Is there a way to hide error stack when displaying error message in UI using Error function?

When using the Error function in a custom manipulator, the application’s error stack is displayed along with the error message. Is there a way to show only the error message without exposing the full stack trace?