Commit 61d13234425d1c7a1c704381eae2d812766fcf72
1 parent
9cbb9a37
Exists in
master
and in
1 other branch
convert error_message to a string
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/tasks/test_api.rake
... | ... | @@ -18,7 +18,7 @@ namespace :test_api do |
18 | 18 | error_message = bad_records.map do |record| |
19 | 19 | "Vote ##{record["id"]} has a different prompt_id than its appearance." |
20 | 20 | end |
21 | - error_message.join "\n" | |
21 | + error_message = error_message.join "\n" | |
22 | 22 | return error_message.blank? ? [success_message, false] : [error_message, true] |
23 | 23 | end |
24 | 24 | ... | ... |