diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2019-11-05 09:44:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-05 09:44:07 +0800 |
commit | 662b5b2f062ea38f75bf66e5b7b687a583ad1e68 (patch) | |
tree | c101edd561b60284acaf7e89f4b44d0cce1726a8 | |
parent | c3af02b1afa021d3cb393fb43c45d59c44cf54b4 (diff) | |
download | mill-662b5b2f062ea38f75bf66e5b7b687a583ad1e68.tar.gz mill-662b5b2f062ea38f75bf66e5b7b687a583ad1e68.tar.bz2 mill-662b5b2f062ea38f75bf66e5b7b687a583ad1e68.zip |
Improve error message in SonatypeHttpApi.scala
-rw-r--r-- | scalalib/src/publish/SonatypeHttpApi.scala | 2 |
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 |