diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-05-10 16:47:47 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-05-10 16:48:26 +0200 |
commit | bd588eb9a4b2890da6f9db928f302e2e98a7b9ce (patch) | |
tree | 76ad822f028c847190a0a14a07c8a3b1bcc554d6 /src/hydrilla/builder/build.py | |
parent | 61f0aa75c64732063988826400ebc9f8e01ee3bb (diff) | |
download | hydrilla-builder-bd588eb9a4b2890da6f9db928f302e2e98a7b9ce.tar.gz hydrilla-builder-bd588eb9a4b2890da6f9db928f302e2e98a7b9ce.zip |
add missing english translations and verify message texts of raised exceptions in tests
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() |