How to debug an Automator workflow

automator

I have a very simple automator action consisting on a shell script that should be executed in a selected folder in the finder. When I execute the action I get the message:

The action "Run Shell Script" encountered an error.

Obviously this is too generic. Is there an easy way to see a more precise error message that give me a clue of what the problem is about ?

Best Answer

Enable the Automator Log

Automator's Log panel should display more detailed error information. You can show it by clicking the Log item in the View menu (or pressing ⌥⌘L).

Log Panel