From ceb96f205ba19d9a4690cb00d64325bdd1aa9059 Mon Sep 17 00:00:00 2001 From: Lauri Lehmijoki Date: Fri, 9 May 2014 20:32:36 +0300 Subject: [PATCH] Do not throw a non-existent exception --- lib/s3_website/paths.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/s3_website/paths.rb b/lib/s3_website/paths.rb index 89195ed7..5591fa9b 100644 --- a/lib/s3_website/paths.rb +++ b/lib/s3_website/paths.rb @@ -32,7 +32,8 @@ def self.infer_automatically(pwd) if site_path site_path else - raise NoPredefinedWebsiteDirectoryFound + puts "Could not find a website directory. Specify one with the --site parameter." + exit end end end