From 941ad77c27579848c3bd87f3e76a0cbbff8ab844 Mon Sep 17 00:00:00 2001 From: Gaurav Tiwari Date: Tue, 27 Feb 2018 23:20:45 +0000 Subject: [PATCH] Raise if NODE_ENV is not set --- lib/webpacker/env.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/webpacker/env.rb b/lib/webpacker/env.rb index b90d51fa8..977116be7 100644 --- a/lib/webpacker/env.rb +++ b/lib/webpacker/env.rb @@ -40,7 +40,7 @@ def available_environments def node_env ENV.fetch("NODE_ENV") rescue KeyError - logger.info "Using webpacker requires that you set NODE_ENV environment variables. " \ + raise "Using webpacker requires that you set NODE_ENV environment variables. " \ "Valid values are #{available_environments.join(', ')}" end end