Skip to content

Commit 5b43ef4

Browse files
author
zhangbin
committed
Modify the tip message for can't find template directory.
1 parent 166dae5 commit 5b43ef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/project_new/project_new.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def _scan(self):
238238
if len(folders) == 0:
239239
cur_engine = "cocos2d-x" if self._lang == "js" else "cocos2d-js"
240240
need_engine = "cocos2d-js" if self._lang == "js" else "cocos2d-x"
241-
engine_tip = "You can't create a %s game in %s. Please use %s instead." % (self._lang, cur_engine, need_engine)
241+
engine_tip = "You can specify the path of %s by argument '-e'." % need_engine
242242
message = "Fatal: can't find any template for <%s> language in %s\n%s" % (self._lang, templates_dir, engine_tip)
243243
raise cocos.CCPluginError(message)
244244

0 commit comments

Comments
 (0)