mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(user-menu) processing menu item run error
This commit is contained in:
parent
9abb48526b
commit
f22829ef4f
1 changed files with 3 additions and 1 deletions
|
|
@ -156,7 +156,9 @@ const runUserMenu = async (value, options, userMenu) => {
|
|||
};
|
||||
|
||||
function getCodeFrame({error, source}) {
|
||||
if (error.code === 'frame')
|
||||
const {code} = error;
|
||||
|
||||
if (!code || code === 'frame')
|
||||
return error.message;
|
||||
|
||||
const [line, column] = parse(error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue