Allow formatting for errors.
Fix asserts