Skip to content

Commit

Permalink
Add path to SetNamedSecurityInfoW error
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed May 26, 2024
1 parent 6ba9280 commit eba084d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions windows/Sources/Sandbox/Acl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public func grantAccess(
)
}
guard result == ERROR_SUCCESS else {
throw Win32Error("SetNamedSecurityInfoW", errorCode: result)
throw Win32Error("SetNamedSecurityInfoW '\(path)'", errorCode: result)
}
}
public func grantNamedPipeAccess(
Expand Down Expand Up @@ -124,7 +124,7 @@ public func grantNamedPipeAccess(
nil
)
guard result == ERROR_SUCCESS else {
throw Win32Error("SetNamedSecurityInfoW", errorCode: result)
throw Win32Error("SetSecurityInfo", errorCode: result)
}
}
public enum AccessPermissions: DWORD {
Expand Down

0 comments on commit eba084d

Please sign in to comment.