change error to error class name