Skip to content

Commit

Permalink
Improve sonatype error reporting (#4008)
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi authored Nov 22, 2024
1 parent dd856fb commit 34bf576
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scalalib/src/mill/scalalib/publish/SonatypeHttpApi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ class SonatypeHttpApi(
)

if (!response.is2xx) {
throw new Exception(s"$uri/staging/profiles returned ${response.statusCode}")
throw new Exception(
s"$uri/staging/profiles returned ${response.statusCode}\n${response.text()}"
)
}

val resourceUri =
Expand Down

0 comments on commit 34bf576

Please sign in to comment.