Browse Source

Fix for unhandled err

NGPixel 8 năm trước cách đây
mục cha
commit
da549cd637
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      libs/system.js

+ 1 - 1
libs/system.js

@@ -65,7 +65,7 @@ module.exports = {
       winston.info('[SERVER.System] Cleaning install leftovers...')
       return fs.removeAsync(self._installDir).then(() => {
         winston.info('[SERVER.System] Restarting Wiki.js...')
-        return pm2.restartAsync('wiki').catch(err => {
+        return pm2.restartAsync('wiki').catch(err => { // eslint-disable-line handle-callback-err
           winston.error('Unable to restart Wiki.js via pm2... Do a manual restart!')
           process.exit()
         })