mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Raise when empty severity provided to SeverityYamlConverter.from_yaml
This commit is contained in:
parent
14f6ba0c0b
commit
d0d8b18c83
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ module Ameba
|
|||
|
||||
case value = node.value
|
||||
when String then Severity.parse(value)
|
||||
when Nil then nil
|
||||
when Nil then raise "Missing severity"
|
||||
else
|
||||
raise "Incorrect severity: #{value}"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue