1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 17:24:46 +00:00

adding warning for failing action/transformation for #111

This commit is contained in:
deadc0de6
2019-03-28 07:19:37 +01:00
parent 652d556be1
commit 308c95b7e1

View File

@@ -72,6 +72,8 @@ class Action(Cmd):
ret = subprocess.call(cmd, shell=True)
except KeyboardInterrupt:
self.log.warn('action interrupted')
if ret != 0:
self.log.warn('action returned code {}'.format(ret))
return ret == 0
@@ -92,4 +94,6 @@ class Transform(Cmd):
ret = subprocess.call(cmd, shell=True)
except KeyboardInterrupt:
self.log.warn('transformation interrupted')
if ret != 0:
self.log.warn('transformation returned code {}'.format(ret))
return ret == 0