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.
2 parents 5be102f + d16be57 commit e85a541Copy full SHA for e85a541
mytoncore/fift.py
@@ -19,7 +19,7 @@ def Run(self, args, **kwargs):
19
process = subprocess.run(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=timeout)
20
output = process.stdout.decode("utf-8")
21
err = process.stderr.decode("utf-8")
22
- if len(err) > 0:
+ if process.returncode != 0 and len(err) > 0:
23
self.local.add_log("args: {args}".format(args=args), "error")
24
raise Exception("Fift error: {err}".format(err=err))
25
return output
0 commit comments