Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Added setting of original error when creating an EosioError from an E…
Browse files Browse the repository at this point in the history
…rror.
  • Loading branch information
Mark Johnson authored and mjohnson12 committed Oct 22, 2019
1 parent fc7cc61 commit 2682560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EosioSwift/Foundation/EosioError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public extension Error {
return eosioError
}

return EosioError(EosioErrorCode.unexpectedError, reason: self.localizedDescription)
return EosioError(EosioErrorCode.unexpectedError, reason: self.localizedDescription, originalError: self as NSError)
}

}

0 comments on commit 2682560

Please sign in to comment.