From 308c95b7e1b3b7b0635403759ada5463cb893a9b Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Thu, 28 Mar 2019 07:19:37 +0100 Subject: [PATCH] adding warning for failing action/transformation for #111 --- dotdrop/action.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dotdrop/action.py b/dotdrop/action.py index 2d9e6f9..8dac8de 100644 --- a/dotdrop/action.py +++ b/dotdrop/action.py @@ -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