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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user