Returns an error on parse failure