Moved flash message to standard error class