aboutsummaryrefslogtreecommitdiffstats
path: root/erlang.mk
diff options
context:
space:
mode:
authorDerek Brown <[email protected]>2014-08-05 13:14:13 -0400
committerDerek Brown <[email protected]>2014-08-13 10:26:25 -0400
commiteb8a5a8678e6ec69c7bc64dfac01863d006be76f (patch)
tree83cab7c9d8d9b6720b6763aaf5d05737faded412 /erlang.mk
parentc2e423040596efd8267a701c87090188a3109fe7 (diff)
downloaderlang.mk-eb8a5a8678e6ec69c7bc64dfac01863d006be76f.tar.gz
erlang.mk-eb8a5a8678e6ec69c7bc64dfac01863d006be76f.tar.bz2
erlang.mk-eb8a5a8678e6ec69c7bc64dfac01863d006be76f.zip
Add error message before failing due to invalid dependency
If a dependency specified in DEPS is unknown or invalid (its VS is not "git"), erlang.mk will fail. Now, add a human-readable error message to help the user understand what the problem is.
Diffstat (limited to 'erlang.mk')
-rw-r--r--erlang.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/erlang.mk b/erlang.mk
index 082454b..7e8e0f3 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -115,6 +115,7 @@ define dep_fetch
git clone -n -- $$$$REPO $(DEPS_DIR)/$(1); \
cd $(DEPS_DIR)/$(1) && git checkout -q $$$$COMMIT; \
else \
+ echo "Unknown or invalid dependency: $(1). Please consult the erlang.mk README for instructions." >&2; \
exit 78; \
fi
endef