Skip to content

Commit

Permalink
Print complete error message when swallowAnyErrors catches an error
Browse files Browse the repository at this point in the history
  • Loading branch information
jwfriese committed Oct 10, 2017
1 parent da9f26e commit 6559992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fleet/Error/FleetError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation

public class FleetError: NSException {
init(_ definition: FleetErrorDefinition) {
super.init(name: definition.name, reason: definition.errorMessage, userInfo: nil)
super.init(name: definition.name, reason: definition.errorMessage, userInfo: ["description" : definition.errorMessage])
}

required public init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) }
Expand Down

0 comments on commit 6559992

Please sign in to comment.