change error handler

change error handler, not panic