提交 4218dad2 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

better error help message for --volume mistake #66

上级 3b91cfcd
...@@ -17,7 +17,7 @@ figlet ChatBots ...@@ -17,7 +17,7 @@ figlet ChatBots
echo echo
echo -n "Starting Wechaty ... " echo -n "Starting Wechaty ... "
VERSION=$(wechaty-version 2>/dev/null) VERSION=$(wechaty-version 2>/dev/null || echo '0.0.0(unknown)')
echo "v$VERSION" echo "v$VERSION"
echo echo
...@@ -53,6 +53,26 @@ if [[ "$1" == *.ts || "$1" == *.js ]]; then ...@@ -53,6 +53,26 @@ if [[ "$1" == *.ts || "$1" == *.js ]]; then
exit $ret exit $ret
else else
echo "ERROR: can not found bot file: $botFile" echo "ERROR: can not found bot file: $botFile"
figlet " Troubleshooting "
cat <<'TROUBLESHOOTING'
Troubleshooting:
1. Did you bind the current directory into container?
check your `docker run ...` command, if there's no `volumn` arg,
then you need to add one to bind the volume of /bot:
`--volume="$PWD":/bot`
this will let the container visit your current directory.
if you still have issue, please have a look at
https://github.com/wechaty/wechaty/issues/66
and do a search in issues, that might be help.
TROUBLESHOOTING
exit -1 exit -1
fi fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册