mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
fix(server) user-menu: e.message -> errorFind.message
This commit is contained in:
parent
8c8ac3bab4
commit
9a724a4bba
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue