Gets error messages working for non-debugging mode