From 74c89cf7d4cc844156dab7874c87205d5bdb9e27 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Wed, 7 Dec 2016 10:46:43 +0100 Subject: [PATCH] Do not print out error if app nginx file does not exist --- src/nginx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nginx.js b/src/nginx.js index 1303a7787..f317d64f8 100644 --- a/src/nginx.js +++ b/src/nginx.js @@ -83,7 +83,7 @@ function unconfigureApp(app, callback) { var nginxConfigFilename = path.join(paths.NGINX_APPCONFIG_DIR, app.id + '.conf'); if (!safe.fs.unlinkSync(nginxConfigFilename)) { - debug('Error removing nginx configuration of "%s": %s', vhost, safe.error.message); + if (safe.error.code !== 'ENOENT') debug('Error removing nginx configuration of "%s": %s', vhost, safe.error.message); return callback(null); }