diff options
author | Florian Bruhin <me@the-compiler.org> | 2023-10-17 09:46:16 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2023-10-17 09:46:16 +0200 |
commit | 1b7e3cdb7d0e1861393a10c56999c09964bf5a59 (patch) | |
tree | 6f1dc6f849255b3150bcb1ba80a711b8454a02cf | |
parent | a8355674dac6ac1fc19f5ce618696cf7673b0e8a (diff) | |
download | qutebrowser-1b7e3cdb7d0e1861393a10c56999c09964bf5a59.tar.gz qutebrowser-1b7e3cdb7d0e1861393a10c56999c09964bf5a59.zip |
scripts: Add more debugging info
-rw-r--r-- | scripts/link_pyqt.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/link_pyqt.py b/scripts/link_pyqt.py index c188660a6..cbfb7995c 100644 --- a/scripts/link_pyqt.py +++ b/scripts/link_pyqt.py @@ -107,8 +107,11 @@ def get_lib_path(executable, name, required=True): return data elif prefix == 'ImportError': if required: - raise Error("Could not import {} with {}: {}!".format( - name, executable, data)) + wrapper = os.environ["QUTE_QT_WRAPPER"] + raise Error( + f"Could not import {name} with {executable}: {data} " + f"(QUTE_QT_WRAPPER: {wrapper}" + ) return None else: raise ValueError("Unexpected output: {!r}".format(output)) |