Report the correct error when we cannot remove a network

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
Cameron Diver 2019-12-18 14:52:08 +00:00
parent 71b856fa7c
commit 2d4ac24403
No known key found for this signature in database
GPG Key ID: 49690ED87032539F

View File

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