summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElvin Efendi <elvin.efendiev@shopify.com>2015-10-26 12:48:48 -0400
committerElvin Efendi <elvin.efendiev@shopify.com>2015-11-13 15:48:14 -0500
commitc96c52ab7153ffd85906550544df627c6c80aac8 (patch)
tree6cee64fa8cfb2a8a11cde22972d1ac6ae04c80cf
parent8c61bf35408c0b47eb79d2d9d135b5b479abfecb (diff)
raise more specific exception when required key is not present
-rw-r--r--lib/oxidized/hook/githubrepo.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/hook/githubrepo.rb b/lib/oxidized/hook/githubrepo.rb
index f2ffa2a..efa536b 100644
--- a/lib/oxidized/hook/githubrepo.rb
+++ b/lib/oxidized/hook/githubrepo.rb
@@ -1,6 +1,6 @@
class GithubRepo < Oxidized::Hook
def validate_cfg!
- cfg.has_key?('remote_repo') or raise 'remote_repo is required'
+ cfg.has_key?('remote_repo') or raise KeyError, 'remote_repo is required'
end
def run_hook(ctx)