From: Daan De Meyer Date: Tue, 17 Sep 2024 15:03:04 +0000 (+0200) Subject: Pass filename to oserror() in a few more cases X-Git-Tag: v25~285^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91501573129eb2bc3bba0dc70090ca6fcee8c353;p=thirdparty%2Fmkosi.git Pass filename to oserror() in a few more cases --- diff --git a/mkosi/sandbox.py b/mkosi/sandbox.py index 57d122d18..581bbd7a1 100755 --- a/mkosi/sandbox.py +++ b/mkosi/sandbox.py @@ -109,7 +109,7 @@ def statfs(path: str) -> int: buffer = (ctypes.c_long * 15)() if libc.statfs(path.encode(), ctypes.byref(buffer)) < 0: - oserror() + oserror(path) return int(buffer[0]) @@ -119,12 +119,12 @@ def mount(src: str, dst: str, type: str, flags: int, options: str) -> None: typeb = type.encode() if type else None optionsb = options.encode() if options else None if libc.mount(srcb, dst.encode(), typeb, flags, optionsb) < 0: - oserror() + oserror(dst) def umount2(path: str, flags: int = 0) -> None: if libc.umount2(path.encode(), flags) < 0: - oserror() + oserror(path) def cap_permitted_to_ambient() -> None: