Adding more detailed error output.
Fixing error capture bug.