Improve error output. Use the third parameter of the "catch" command to