Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Actions and display of error information

Michael Cessna
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 22, 2024

Regarding custom actions, is it possible to pass information that can be displayed by SourceTree, such as an error message? Right now the custom action simply displays the command line along with a message stating "Completed with errors, see above." (where above is the command line). Ideally, SourceTree could read the standard error output or use some other mechanism for displaying errors or other info to the user. At the moment I'm just displaying a console message after setting the exit code to > 0 for errors. This works ok, but if there is a way to display the actual error message in SourceTree, that would be ideal.

Thanks

 

Mike

1 answer

0 votes
Martin Runge
Community Champion
June 12, 2026

Hi @Michael Cessna

Welcome to the Atlassian Community!

I recommend checking the "Show Full Output" option when configuring your custom action. You can find this setting by navigating to Tools > Options > Custom Actions on Windows or Sourcetree > Preferences > Custom Actions on macOS, then editing your specific custom action.

Enabling Show Full Output opens a window in Sourcetree that captures real-time standard output and errors when running scripts. If a script fails with an exit code >0, error messages stay visible in the console instead of being hidden by the generic error message.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
3.4.17
TAGS
AUG Leaders

Atlassian Community Events