Skip to content

Commit

Permalink
Honor originate parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlabelle committed Sep 4, 2024
1 parent a2cfb2d commit 5dc8279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Support/Sources/WindowsRuntime/WinRTError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public struct WinRTError: COMErrorProtocol, CustomStringConvertible {

// Otherwise, originate a new error
let hresult = (error as? ErrorWithHResult)?.hresult ?? HResult.fail
if Self.originate(hresult: hresult, message: String(describing: error), languageException: LanguageException(error: error)) {
if originate && Self.originate(hresult: hresult, message: String(describing: error), languageException: LanguageException(error: error)) {
if captureContext { try? Self.captureContext(hresult: hresult) }
}

Expand Down

0 comments on commit 5dc8279

Please sign in to comment.