about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authorTakeshi Umeda <noel.yoshiba@gmail.com>2020-07-20 05:28:27 +0900
committerGitHub <noreply@github.com>2020-07-19 22:28:27 +0200
commit7540e235a2b387ca08cf57f8942d1b190d242808 (patch)
tree3f2c9a3eb9b163b6aac34c2aeca70cf867e4831e /app/lib
parent47931db1f50db3b6773fbb3cc4645fdb4a4692eb (diff)
Fix movie width and frame_rate returning nil (#14357)
* Fix movie width and frame_rate returning nil

* Add StreamValidationError and raise

* Fix code style
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/exceptions.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/lib/exceptions.rb b/app/lib/exceptions.rb
index 3362576b0..7c8e77871 100644
--- a/app/lib/exceptions.rb
+++ b/app/lib/exceptions.rb
@@ -7,6 +7,7 @@ module Mastodon
   class HostValidationError < ValidationError; end
   class LengthValidationError < ValidationError; end
   class DimensionsValidationError < ValidationError; end
+  class StreamValidationError < ValidationError; end
   class RaceConditionError < Error; end
   class RateLimitExceededError < Error; end