Skip to content

Commit

Permalink
Merge pull request #96 from wibed/fix_typo
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTim authored Mar 20, 2024
2 parents aaa23b9 + 3c480fa commit e88cb7e
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 e88cb7e

Please sign in to comment.