Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wibed committed Mar 11, 2024
1 parent aaa23b9 commit 3c480fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ImperialCore/Helpers/Sessions+Imperial.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ extension Session {
public func get<T>(_ key: String, as type: T.Type) throws -> T where T: Codable {
guard let stored = data[key] else {
if _isOptional(T.self) { return Optional<Void>.none as! T }
throw Abort(.internalServerError, reason: "No element found in session with ket '\(key)'")
throw Abort(.internalServerError, reason: "No element found in session with key '\(key)'")
}
return try JSONDecoder().decode(T.self, from: Data(stored.utf8))
}
Expand Down

0 comments on commit 3c480fa

Please sign in to comment.