Properly use <?> with only an error message