diff options
Diffstat (limited to 'src/hydrilla/builder/build.py')
-rw-r--r-- | src/hydrilla/builder/build.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hydrilla/builder/build.py b/src/hydrilla/builder/build.py index ce4935c..feecdfe 100644 --- a/src/hydrilla/builder/build.py +++ b/src/hydrilla/builder/build.py @@ -83,10 +83,11 @@ def generate_spdx_report(root: Path) -> bytes: try: cp = subprocess.run(command, capture_output=True, text=True) except FileNotFoundError: - raise ReuseError(_('couldnt_execute_reuse_is_it_installed')) + msg = _('couldnt_execute_{}_is_it_installed').format('reuse') + raise ReuseError(msg) if cp.returncode != 0: - msg = _('reuse_command_{}_failed').format(' '.join(command)) + msg = _('command_{}_failed').format(' '.join(command)) raise ReuseError(msg, cp) return cp.stdout.encode() |