projects
/
cdist.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aba0e54
)
Maybe we can't use fstrings on all platforms yet.
author
Carl Hetherington
<cth@carlh.net>
Wed, 25 Nov 2020 11:30:12 +0000
(12:30 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 25 Nov 2020 11:30:12 +0000
(12:30 +0100)
cdist
patch
|
blob
|
history
diff --git
a/cdist
b/cdist
index 7efa7ea0fc3a884765f8905190a9b51358ba2c8f..b422c36fce7fe4bdf559b2f33bf8d219fb616592 100755
(executable)
--- 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)