From: Oleg Broytman Date: Sat, 8 Apr 2023 15:45:28 +0000 (+0300) Subject: Feat(submodules/remove): Improve error message X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=commitdiff_plain;h=d05bbf16af2379e816cbc5cdbf0984a13a62173d Feat(submodules/remove): Improve error message --- diff --git a/submodules/remove b/submodules/remove index 23af550..4b38d1a 100755 --- a/submodules/remove +++ b/submodules/remove @@ -8,8 +8,8 @@ fi cd "`git rev-parse --show-toplevel`" || exit 1 if [ \! -f .gitmodules ]; then - echo "The command must be run in the top-level directory" >&2 - echo "of a repository with submodules" >&2 + echo "Cannot find .gitmodules. The command must be run " >&2 + echo "in the top-level directory of a repository with submodules" >&2 exit 1 fi