diff --git a/app/controllers/api/asciicasts_controller.rb b/app/controllers/api/asciicasts_controller.rb index cb12734..2ac601b 100644 --- a/app/controllers/api/asciicasts_controller.rb +++ b/app/controllers/api/asciicasts_controller.rb @@ -11,7 +11,7 @@ module Api location: asciicast rescue ActiveRecord::RecordInvalid => e - render nothing: true, status: 422 + render text: e.record.errors.messages, status: 422 end def show