Got error handler working.

Got output formats error throwing working.