fix(server) user-menu: e.message -> errorFind.message

This commit is contained in:
coderaiser 2021-04-12 18:46:58 +03:00
parent 8c8ac3bab4
commit 9a724a4bba

View file

@ -51,7 +51,7 @@ async function onGET({req, res, menuName}) {
if (errorFind && errorFind.code !== 'ENOENT')
return res
.status(404)
.send(e.message);
.send(errorFind.message);
const homeMenuPath = join(homedir(), menuName);
const menuPath = currentMenuPath || homeMenuPath;