From ca19e2d0f2086a95ed14fc68104fc24b40c7dd57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zden=C4=9Bk=20Topi=C4=8D?= Date: Mon, 19 Nov 2018 13:13:16 +0100 Subject: [PATCH] Consolidate Debuggable.stackTrace with the rest of the error types --- Sources/Debugging/Debuggable.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Debugging/Debuggable.swift b/Sources/Debugging/Debuggable.swift index a965ed58..6570e4af 100644 --- a/Sources/Debugging/Debuggable.swift +++ b/Sources/Debugging/Debuggable.swift @@ -28,7 +28,7 @@ public protocol Debuggable: CustomDebugStringConvertible, CustomStringConvertibl var sourceLocation: SourceLocation? { get } /// Stack trace from which this error originated (must set this from the error's init) - var stackTrace: [String]? { get } + var stackTrace: [String] { get } /// A `String` array describing the possible causes of the error. /// - note: Defaults to an empty array. @@ -117,8 +117,8 @@ extension Debuggable { } /// See `Debuggable` - public var stackTrace: [String]? { - return nil + public var stackTrace: [String] { + return [] } }