Add semicolon to the error message

This commit is contained in:
Vitalii Elenhaupt 2023-02-19 17:39:25 +02:00
parent be8862837f
commit d03f058cae
No known key found for this signature in database
GPG key ID: CD0BF17825928BC0
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ module Ameba
end
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")
end
end

View file

@ -41,7 +41,7 @@ module Ameba
def self.parse(name : String)
super name
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