Put error message in flashBag if Debug is enabled