From 70cc37457c16cb7ead085460ff6c5dc78fa7a66f Mon Sep 17 00:00:00 2001 From: Andre Popovitch Date: Thu, 19 Sep 2024 13:26:31 -0500 Subject: [PATCH] improve error logging --- constants.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/constants.sh b/constants.sh index 974b2c2..1cf8a3e 100755 --- a/constants.sh +++ b/constants.sh @@ -133,7 +133,9 @@ if [[ "${TESTNET}" == "local" ]]; then REGISTRY_FOUND=$(find "$BASE_PATH" -type d -name ic_registry_local_store 2>/dev/null) if [ $(echo "$REGISTRY_FOUND" | wc -l) -gt 1 ]; then - echo "Error: Multiple ic_registry_local_store directories found" + # If you get to this case, it's likely that it can be resolved by starting + # your local replica using `dfx start --clean` + echo "Error: Multiple ic_registry_local_store directories found: ${REGISTRY_FOUND}" exit 1 fi