From c5981928a93aecf0b99e3265bd6fd3def76dc54a Mon Sep 17 00:00:00 2001 From: Mars Hall Date: Wed, 29 Aug 2018 15:00:21 -0700 Subject: [PATCH] Log an error when unable read bundle at runtime (#10) --- .profile.d/inject_react_app_env.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.profile.d/inject_react_app_env.sh b/.profile.d/inject_react_app_env.sh index 259d76d..f372be1 100755 --- a/.profile.d/inject_react_app_env.sh +++ b/.profile.d/inject_react_app_env.sh @@ -21,4 +21,6 @@ then ruby -E utf-8:utf-8 \ -r /app/.heroku/create-react-app/injectable_env.rb \ -e "InjectableEnv.replace('$js_bundle_filename')" +else + echo "Error injecting runtime env: bundle not found '$js_bundle_filename'. See: https://github.com/mars/create-react-app-buildpack/blob/master/README.md#user-content-custom-bundle-location" fi