Skip to content

Commit

Permalink
Upgrade zio-http
Browse files Browse the repository at this point in the history
  • Loading branch information
mijicd committed Oct 30, 2022
1 parent e96aade commit 6e22712
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ lazy val example =
"dev.zio" %% "zio-config-typesafe" % "3.0.2",
"dev.zio" %% "zio-schema-protobuf" % "0.2.1",
"dev.zio" %% "zio-json" % "0.3.0-RC11",
"io.d11" %% "zhttp" % "2.0.0-RC10"
"io.d11" %% "zhttp" % "2.0.0-RC11"
)
)

Expand Down
4 changes: 2 additions & 2 deletions example/src/main/scala/example/ApiError.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ sealed trait ApiError extends NoStackTrace { self =>
final def toResponse: Response =
self match {
case CorruptedData | GithubUnreachable => Response.fromHttpError(HttpError.InternalServerError())
case CacheMiss(key) => Response.fromHttpError(HttpError.NotFound(Path.empty / key))
case UnknownProject(path) => Response.fromHttpError(HttpError.NotFound(Path.root / path))
case CacheMiss(key) => Response.fromHttpError(HttpError.NotFound((Path.empty / key).encode))
case UnknownProject(path) => Response.fromHttpError(HttpError.NotFound((Path.root / path).encode))
}
}

Expand Down

0 comments on commit 6e22712

Please sign in to comment.