Is there a way to make the error message from the n/error module more user friendly? For example, just show the error message instead of something like this:
{“type”“error.SuiteScriptError”,“name”“CUSTOM_ERROR”,“message”:“The record already exists.“,”id”null,“stack”[“createError(N/error)“,”beforeSubmit(/SuiteScripts/preventDuplicateRecords.js:34)“,”createError(N/error)“],“cause”{“name”“CUSTOM_ERROR”,“message”:“The record already exists.“},“notifyOff”false,“userFacing”true}