From ed3b616673cb00c6b9a5d8c2bec95e81385c3fa8 Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Tue, 9 Mar 2021 19:12:12 +0000 Subject: [PATCH] Output a helpful error message when no static.json is found (#202) The error message is now output to `stderr` otherwise it's not shown. Closes GUS-W-8799430. Refs #198. --- CHANGELOG.md | 1 + bin/detect | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a85808d..5bad32fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +* [#202](https://github.com/heroku/heroku-buildpack-static/pull/202) Output a helpful error message when no `static.json` is found ## v6 (2020-12-09) diff --git a/bin/detect b/bin/detect index d604f47d..fb9d3ce8 100755 --- a/bin/detect +++ b/bin/detect @@ -4,6 +4,7 @@ build_dir=$1 if [ ! -f "$build_dir/static.json" ]; then + echo "Could not find 'static.json'! Please ensure it exists and is checked into Git." >&2 exit 1 fi