Skip to content

Commit 3c480fa

Browse files
committed
fix typo
1 parent aaa23b9 commit 3c480fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ImperialCore/Helpers/Sessions+Imperial.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ extension Session {
8484
public func get<T>(_ key: String, as type: T.Type) throws -> T where T: Codable {
8585
guard let stored = data[key] else {
8686
if _isOptional(T.self) { return Optional<Void>.none as! T }
87-
throw Abort(.internalServerError, reason: "No element found in session with ket '\(key)'")
87+
throw Abort(.internalServerError, reason: "No element found in session with key '\(key)'")
8888
}
8989
return try JSONDecoder().decode(T.self, from: Data(stored.utf8))
9090
}

0 commit comments

Comments
 (0)