Ignore lines which can't be reached by tests
Fix style of error messages during registration