Skip to content

Commit

Permalink
HBHTTPErrorResponse -> HBHTTPResponseError
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Feb 10, 2021
1 parent 3d62128 commit 7ef0c44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let package = Package(
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.4.0"),
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.2.0"),
.package(url: "https://github.com/swift-server/swift-service-lifecycle.git", from: "1.0.0-alpha.6"),
.package(url: "https://github.com/hummingbird-project/hummingbird-core.git", from: "0.2.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird-core.git", from: "0.3.0"),
],
targets: [
.target(name: "CURLParser", dependencies: []),
Expand Down
2 changes: 1 addition & 1 deletion Sources/Hummingbird/Server/Application+HTTPResponder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ extension HBApplication {
request.logger.error("\(error)")
// then convert to valid response so this isn't treated as an error further down
let response: HBHTTPResponse
if let error = error as? HBHTTPErrorResponse {
if let error = error as? HBHTTPResponseError {
response = error.response(version: request.version, allocator: request.allocator)
} else {
response = HBHTTPResponse(
Expand Down

0 comments on commit 7ef0c44

Please sign in to comment.