[TASK] Make debug flash message more generic

Since multiple types of Exceptions may be encountered it's necessary to make the message generic.