forked from platformio/platformio-core
Raise exec exception by default
This commit is contained in:
@ -73,7 +73,7 @@ class CoreRPC(BaseRPCHandler):
|
||||
def version():
|
||||
return __version__
|
||||
|
||||
async def exec(self, args, options=None, raise_exception=False):
|
||||
async def exec(self, args, options=None, raise_exception=True):
|
||||
options = options or {}
|
||||
loop = aio_get_running_loop()
|
||||
exit_future = loop.create_future()
|
||||
|
@ -32,7 +32,6 @@ class MemUsageRPC(BaseRPCHandler):
|
||||
await self.factory.manager.dispatcher["core.exec"](
|
||||
["run", "-d", project_dir, "-e", env, "-t", "__memusage"],
|
||||
options=options.get("exec"),
|
||||
raise_exception=True,
|
||||
)
|
||||
return memusage.list_reports(report_dir)[-1]
|
||||
|
||||
|
@ -65,7 +65,7 @@ class ProjectRPC(BaseRPCHandler):
|
||||
args.extend(self._pre_init_empty(configuration))
|
||||
|
||||
return await self.factory.manager.dispatcher["core.exec"](
|
||||
args, options=exec_options
|
||||
args, options=exec_options, raise_exception=False
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
|
Reference in New Issue
Block a user