Skip to content

Commit 04fe857

Browse files
committed
fix: handle expected FileError.NOENT when reading hooks in TlsSession
1 parent e513793 commit 04fe857

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎src/core/tls_session.vala‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,11 @@ namespace AppManager.Core {
120120
}
121121
}
122122
} catch (Error e) {
123-
warning("TlsSession: cannot read %s: %s", hook, e.message);
123+
// Missing hook is expected when APPDIR is set outside a finished
124+
// AppImage (e.g. quick-sharun tracing the binary mid-build).
125+
if (!(e is FileError.NOENT)) {
126+
warning("TlsSession: cannot read %s: %s", hook, e.message);
127+
}
124128
}
125129

126130
foreach (var p in POSSIBLE_CA_BUNDLES) {

0 commit comments

Comments
 (0)