diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-11-25 12:30:12 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-11-25 12:30:12 +0100 |
| commit | 9ece08d361b8440a168fe83c82b297052c3df48e (patch) | |
| tree | 3e441d316a0ac8faa1884bb6b9486afe08d8c503 | |
| parent | aba0e545edeaac71bd06278fd29aa36433f028dc (diff) | |
Maybe we can't use fstrings on all platforms yet.
| -rwxr-xr-x | cdist | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |
