Improved returned error messages
This commit is contained in:
parent
5ca0bbf023
commit
d0eb17812b
|
@ -2,10 +2,11 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
||||||
|
|
||||||
# Changelog for gCube Catalogue (gCat) Service
|
# Changelog for gCube Catalogue (gCat) Service
|
||||||
|
|
||||||
## [v1.4.5]
|
## [v1.4.5-SNAPSHOT]
|
||||||
|
|
||||||
- Removed 'owner_org' field from result when reading an item #20919
|
- Removed 'owner_org' field from result when reading an item #20919
|
||||||
- Dirty patched item validator [#20965]
|
- Dirty patched item validator [#20965]
|
||||||
|
- Improved error message return with message got from CKAN [#19516]
|
||||||
|
|
||||||
|
|
||||||
## [v1.4.4]
|
## [v1.4.4]
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -12,7 +12,7 @@
|
||||||
<groupId>org.gcube.data-publishing</groupId>
|
<groupId>org.gcube.data-publishing</groupId>
|
||||||
<artifactId>gcat</artifactId>
|
<artifactId>gcat</artifactId>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
<version>1.4.5</version>
|
<version>1.4.5-SNAPSHOT</version>
|
||||||
<name>gCube Catalogue (gCat) Service</name>
|
<name>gCube Catalogue (gCat) Service</name>
|
||||||
<description>
|
<description>
|
||||||
This service allows any client to publish on the gCube Catalogue.
|
This service allows any client to publish on the gCube Catalogue.
|
||||||
|
|
|
@ -51,7 +51,7 @@ public class HTTPUtility {
|
||||||
InputStream inputStream = httpURLConnection.getErrorStream();
|
InputStream inputStream = httpURLConnection.getErrorStream();
|
||||||
StringBuilder result = getStringBuilder(inputStream);
|
StringBuilder result = getStringBuilder(inputStream);
|
||||||
logger.trace(result.toString());
|
logger.trace(result.toString());
|
||||||
throw new WebApplicationException(status);
|
throw new WebApplicationException(result.toString(), status);
|
||||||
}
|
}
|
||||||
InputStream inputStream = httpURLConnection.getInputStream();
|
InputStream inputStream = httpURLConnection.getInputStream();
|
||||||
String ret = getStringBuilder(inputStream).toString();
|
String ret = getStringBuilder(inputStream).toString();
|
||||||
|
|
Loading…
Reference in New Issue