throw and error not a string