Added function name to error status.
Prevented non-fatal errors from killing program.