Give a proper error if a part number is malformed