We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9484f9 commit 4cca60eCopy full SHA for 4cca60e
plugins/plugin_package/plugin_package.py
@@ -31,9 +31,10 @@ def parse_args(self, argv):
31
32
def run(self, argv, dependencies):
33
cmd = self._get_sdkbox_path() + ' --runincocos ' + ' '.join(argv)
34
- retval = self._run_cmd(cmd)
35
- if 0 != retval:
36
- raise Exception('Run cocos package fail')
+ ret = self._run_cmd(cmd)
+ if 0 != ret:
+ message = MultiLanguage.get_string('COCOS_ERROR_RUNNING_CMD_RET_FMT', str(ret))
37
+ raise cocos.CCPluginError(message, cocos.CCPluginError.ERROR_RUNNING_CMD)
38
39
def _run_cmd(self, command, cwd=None):
40
# cocos.CMDRunner.run_cmd(command, False, cwd=cwd)
0 commit comments