error message should be on separate line with sprintf.