From 8be972044ebf59ddc35ad890d4cd3e99f7803a5c Mon Sep 17 00:00:00 2001 From: Alsey Coleman Miller Date: Fri, 19 Apr 2019 12:03:27 -0500 Subject: [PATCH] Updated `POSIXError` --- Sources/BluetoothLinux/POSIXError.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/BluetoothLinux/POSIXError.swift b/Sources/BluetoothLinux/POSIXError.swift index 50dfd38..ee097bd 100755 --- a/Sources/BluetoothLinux/POSIXError.swift +++ b/Sources/BluetoothLinux/POSIXError.swift @@ -34,6 +34,9 @@ internal extension POSIXError { self.init(_nsError: NSPOSIXError(code, function: function, file: file, line: line)) } +} + +public extension POSIXError { var debugInformation: String? { return userInfo[NSPOSIXError.debugInformationKey] as? String