summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-11-25 12:30:12 +0100
committerCarl Hetherington <cth@carlh.net>2020-11-25 12:30:12 +0100
commit9ece08d361b8440a168fe83c82b297052c3df48e (patch)
tree3e441d316a0ac8faa1884bb6b9486afe08d8c503
parentaba0e545edeaac71bd06278fd29aa36433f028dc (diff)
Maybe we can't use fstrings on all platforms yet.
-rwxr-xr-xcdist4
1 files changed, 2 insertions, 2 deletions
diff --git a/cdist b/cdist
index 7efa7ea..b422c36 100755
--- a/cdist
+++ b/cdist
@@ -259,9 +259,9 @@ def command(c):
try:
r = subprocess.run(c, shell=True)
if r.returncode != 0:
- raise Error(f'command {c} failed ({r.returncode})')
+ raise Error('command %s failed (%d)' % (c, r.returncode))
except Exception as e:
- raise Error(f'command {c} failed ({e})')
+ raise Error('command %s failed (%d)' % (c, e))
def command_and_read(c):
log_normal(c)