summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2019-11-05 09:44:07 +0800
committerGitHub <noreply@github.com>2019-11-05 09:44:07 +0800
commit662b5b2f062ea38f75bf66e5b7b687a583ad1e68 (patch)
treec101edd561b60284acaf7e89f4b44d0cce1726a8
parentc3af02b1afa021d3cb393fb43c45d59c44cf54b4 (diff)
downloadmill-662b5b2f062ea38f75bf66e5b7b687a583ad1e68.tar.gz
mill-662b5b2f062ea38f75bf66e5b7b687a583ad1e68.tar.bz2
mill-662b5b2f062ea38f75bf66e5b7b687a583ad1e68.zip
Improve error message in SonatypeHttpApi.scala
-rw-r--r--scalalib/src/publish/SonatypeHttpApi.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/scalalib/src/publish/SonatypeHttpApi.scala b/scalalib/src/publish/SonatypeHttpApi.scala
index 4b9d239e..9623cfae 100644
--- a/scalalib/src/publish/SonatypeHttpApi.scala
+++ b/scalalib/src/publish/SonatypeHttpApi.scala
@@ -67,7 +67,7 @@ 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()}")
}
ujson.read(response.data.text)("data")("stagedRepositoryId").str.toString