Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Gayathri Sairamkrishnan committed Sep 17, 2024
1 parent e29736a commit 205d78c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func getGreeting(_ input: Operations.getGreeting.Input) async throws -> Operatio
} catch let error {
switch error {
case GreetingError.authorizationError:
return (HTTPResponse(status: 404), nil)
return .unauthorized(.init())
case GreetingError.timeout:
return ...
}
Expand Down Expand Up @@ -125,7 +125,7 @@ extension MyAppError: HTTPStatusConvertible {

```swift
let handler = try await RequestHandler()
try handler.registerHandlers(on: transport, middlewares: [ErrorHandlingMiddleware()])
try handler.registerHandlers(on: transport, middlewares: [ErrorMiddleware()])

```

Expand Down

0 comments on commit 205d78c

Please sign in to comment.