Merge pull request #1168 from balena-io/fix-network-reporting

Report the correct error when we cannot remove a network
This commit is contained in:
CameronDiver 2019-12-18 16:31:10 +00:00 committed by GitHub
commit 5e51b0063d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,7 +193,7 @@ export class Network {
.getNetwork(Network.generateDockerName(this.appId, this.name))
.remove(),
).tapCatch(error => {
this.logger.logSystemEvent(logTypes.createNetworkError, {
this.logger.logSystemEvent(logTypes.removeNetworkError, {
network: { name: this.name, appId: this.appId },
error,
});