Skip to content

Commit

Permalink
Raise if NODE_ENV is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravtiwari committed Feb 27, 2018
1 parent 74b36c3 commit 941ad77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webpacker/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 941ad77

Please sign in to comment.