mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Reword generic error message on config load
This commit is contained in:
parent
d9b2d69055
commit
4741c9f4c4
2 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ module Ameba
|
|||
end
|
||||
|
||||
it "raises when custom config file doesn't exist" do
|
||||
expect_raises(Exception, "Config file is invalid: Config file does not exist foo.yml") do
|
||||
expect_raises(Exception, "Unable to load config file: Config file does not exist foo.yml") do
|
||||
Config.load "foo.yml"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -115,7 +115,7 @@ class Ameba::Config
|
|||
end
|
||||
Config.new YAML.parse(content)
|
||||
rescue e
|
||||
raise "Config file is invalid: #{e.message}"
|
||||
raise "Unable to load config file: #{e.message}"
|
||||
end
|
||||
|
||||
protected def self.read_config(path = nil)
|
||||
|
|
Loading…
Reference in a new issue