Skip to content

Commit af131eb

Browse files
author
minggo
committed
Merge pull request cocos2d#161 from natural-law/develop
Solve the error logic when select available platform for compiling.
2 parents 0fd9899 + a57f331 commit af131eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/cocos_project.py

+2
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ def __init__(self, project, current):
212212
current_lower = current.lower()
213213
if current_lower in self._available_platforms.keys():
214214
self._current = current_lower
215+
else:
216+
raise cocos.CCPluginError("Current available platforms : %s. '%s' is not available." % (self._available_platforms.keys(), current))
215217

216218
def _filter_platforms(self, platforms):
217219
ret = []

0 commit comments

Comments
 (0)