Throw error in API action step does not return the error in catch

$_EXCEPTION is returning just null. Do I need to update something else? Or recreate the SA?

For the $_EXCEPTION to work you need the updated app.js I've posted.

I did update both the files.

Were you able to test $_EXCEPTION again?

Also, I just realized since relevant information will only be available in the $_EXCEPTION object in case of API errors.. will the $_EXCEPTION object also work for other regular errors?

@patrick We you able to check this? $_EXCEPTION is not returning any data.

Also this :point_up:

Awaiting response here.

It seems that I forgot the trycatch action in the core module. The $_EXCEPTION will work on any error object.

core.zip (2.2 KB) unzip to lib/modules

Doesn't work correctly still.
Have sent you a direct message with my files.

Was this resolved? I'm on 6.8 and can't catch errors from an API action.

@patrick Did you ever commit this to version control? You mentioned you were not working from your work PC when working with sid to resolve this previously. I'm still experiencing this issue today on 6.8. Can not get API errors from try/catch

The latest release should have the fix.

Clarifying question: the latest "stable" release, or the latest v7 beta release?

I'm running 6.8 with no additional updates waiting to be installed, and currently experiencing this issue. I'm hoping "the latest release" is referring to an upcoming fix for 6.8.

Is this fixed in v7?

The changes are in v7 Beta.