Skip to content

Commit

Permalink
Improved logging for Eclipse Marketplace install failures (#2357)
Browse files Browse the repository at this point in the history
Signed-off-by: nicolatimeus <[email protected]>
  • Loading branch information
nicolatimeus authored and pierantoniomerlino committed Jan 21, 2019
1 parent 995775a commit d49f7fe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2011, 2017 Eurotech and/or its affiliates
* Copyright (c) 2011, 2019 Eurotech and/or its affiliates
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down Expand Up @@ -182,6 +182,7 @@ public GwtMarketplacePackageDescriptor getMarketplacePackageDescriptor(GwtXSRFTo
checkCompatibility(descriptor, kuraVersion);

} catch (Exception e) {
logger.warn("failed to get deployment package descriptior from Eclipse Marketplace", e);
throw new GwtKuraException(GwtKuraErrorCode.INTERNAL_ERROR, e);
} finally {
if (connection != null) {
Expand Down Expand Up @@ -249,6 +250,7 @@ public void installPackageFromMarketplace(GwtXSRFToken xsrfToken, GwtMarketplace
});

} catch (Exception e) {
logger.warn("failed to start package install from Eclipse Marketplace", e);
throw new GwtKuraException(GwtKuraErrorCode.INTERNAL_ERROR, e);
}
}
Expand Down

0 comments on commit d49f7fe

Please sign in to comment.