mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-13 04:44:39 +00:00
Improve the error message generated when locking
Estimated hours taken: 1 tools/generate_index_html: Improve the error message generated when locking the directory fails.
This commit is contained in:
@@ -26,7 +26,11 @@ timeout=20
|
||||
retries=0
|
||||
until mkdir $LOCKDIR; do
|
||||
case $retries in
|
||||
$timeout) echo "** $0: timed out" 1>&2; exit 1 ;;
|
||||
$timeout)
|
||||
echo "** $0: creating lock directory `pwd`/$LOCKDIR failed" 1>&2
|
||||
echo "** $0: remove it manually if it is stale" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
sleep 5
|
||||
retries=`expr $retries + 1`
|
||||
|
||||
Reference in New Issue
Block a user