Commit cf806e3a authored by Hunter Loftis's avatar Hunter Loftis Committed by Jeremy Morrell

stderr useful message on detect failure (#471)

More useful error message if an app is configured to use the node buildpack but doesn't have a package.json file in its root directory.
parent 6d2a9b47
......@@ -2,8 +2,9 @@
# bin/detect <build-dir>
if [ -f $1/package.json ]; then
echo "Node.js"
echo 'Node.js'
exit 0
fi
>&2 echo 'Node.js: package.json not found in application root'
exit 1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment