Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Output a helpful error message when no static.json is found (#202)
Browse files Browse the repository at this point in the history
The error message is now output to `stderr` otherwise it's not shown.

Closes GUS-W-8799430.
Refs #198.
  • Loading branch information
edmorley authored Mar 9, 2021
1 parent 256bd77 commit 4c46624
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

* [#202](https:/heroku/heroku-buildpack-static/pull/202) Output a helpful error message when no `static.json` is found

## v6 (2020-12-09)

Expand Down
1 change: 1 addition & 0 deletions bin/detect
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4c46624

Please sign in to comment.