tamaki.mes.utils.showErrorPopupMessage
Description
Opens the standard TamakiMES/_popups/Error modal popup showing a custom message instead of a
traceback. Use this to surface a known, user-friendly error message rather than a raw stack trace.
Must be run in a Perspective session scope.
Syntax
tamaki.mes.utils.showErrorPopupMessage(message, popupTitle="Error")
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
message | String | False | The message to display in the popup. |
popupTitle | String | True | The popup window title. Defaults to "Error". |
Returns
This method does not return a value. It opens the Error popup as a side effect.
Code Examples
# Surface a known, user-friendly message instead of a stack trace
if file_type != 'zip':
tamaki.mes.utils.showErrorPopupMessage("Unsupported file type")
return