Project

General

Profile

« Previous | Next » 

Revision bd588eb9

Added by koszko over 1 year ago

add missing english translations and verify message texts of raised exceptions in tests

View differences:

src/hydrilla/builder/build.py
83 83
        try:
84 84
            cp = subprocess.run(command, capture_output=True, text=True)
85 85
        except FileNotFoundError:
86
            raise ReuseError(_('couldnt_execute_reuse_is_it_installed'))
86
            msg = _('couldnt_execute_{}_is_it_installed').format('reuse')
87
            raise ReuseError(msg)
87 88

  
88 89
        if cp.returncode != 0:
89
            msg = _('reuse_command_{}_failed').format(' '.join(command))
90
            msg = _('command_{}_failed').format(' '.join(command))
90 91
            raise ReuseError(msg, cp)
91 92

  
92 93
    return cp.stdout.encode()

Also available in: Unified diff