mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Add semicolon to the error message
This commit is contained in:
parent
be8862837f
commit
d03f058cae
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ module Ameba
|
||||||
end
|
end
|
||||||
|
|
||||||
it "raises when name is incorrect" do
|
it "raises when name is incorrect" do
|
||||||
expect_raises(Exception, "Incorrect severity name BadName. Try one of Error, Warning, Convention") do
|
expect_raises(Exception, "Incorrect severity name BadName. Try one of: Error, Warning, Convention") do
|
||||||
Severity.parse("BadName")
|
Severity.parse("BadName")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -41,7 +41,7 @@ module Ameba
|
||||||
def self.parse(name : String)
|
def self.parse(name : String)
|
||||||
super name
|
super name
|
||||||
rescue ArgumentError
|
rescue ArgumentError
|
||||||
raise "Incorrect severity name #{name}. Try one of #{values.map(&.to_s).join(", ")}"
|
raise "Incorrect severity name #{name}. Try one of: #{values.map(&.to_s).join(", ")}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue