Skip to content

Commit

Permalink
Update RefdsError.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelesantos committed Nov 4, 2024
1 parent c241aca commit 1766614
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/RefdsShared/Error/RefdsError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ public enum RefdsError: Error, LocalizedError, RefdsLogger {
await Self.loggerInstance.error(message: localizedDescription)
}
}

extension Error {
public func logger() async {
await RefdsLoggerSystem.shared.error(message: localizedDescription)
}
}

0 comments on commit 1766614

Please sign in to comment.