aboutsummaryrefslogtreecommitdiffstats
path: root/core
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 /core
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 'core')
-rw-r--r--core/deps.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/deps.mk b/core/deps.mk
index f15ae74..1c1892f 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -47,6 +47,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