Better exception message for flash errors