2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-24 23:48:24 +00:00

[minor] changed validation message

This commit is contained in:
Anand Doshi 2015-08-17 12:34:06 +05:30
parent c79f290a76
commit 28af30ca3a

View File

@ -510,7 +510,7 @@ def pre_upgrade(from_ver, to_ver, bench='.'):
exec_cmd("{pip} install --upgrade -e {app}".format(pip=pip, app=cwd))
if to_ver >= 6:
if not find_executable('npm') and not find_executable('node'):
raise Exception("Please install node and npm")
raise Exception("Please install nodejs and npm")
def post_upgrade(from_ver, to_ver, bench='.'):
from .config import generate_nginx_config, generate_supervisor_config, generate_redis_cache_config, generate_redis_async_broker_config