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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.