Do not print out error if app nginx file does not exist

This commit is contained in:
Johannes Zellner
2016-12-07 10:46:43 +01:00
parent 805125b17f
commit 74c89cf7d4

View File

@@ -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);
}