Skip to content

Commit 1af369c

Browse files
committed
fix: fix error message pattern and add cmd #30
1 parent a075ef9 commit 1af369c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export async function runAndRestart(message: string, fullRestart: boolean, actio
5959
if ('code' in err && err.code === 'EROFS') {
6060
logError(`${base} it runs on read-only filesystem. Maybe you need to choose another way to install VSCode`, err)
6161
return
62-
} else if (err.message.includes('RangeError: Maximum call stack size exceeded')) {
63-
logError(`${base} current user is not allowed. Please comfirm that you have the permission to write files in ${baseDir}`, err)
62+
} else if (err.message.includes('Maximum call stack size exceeded')) {
63+
logError(`${base} current user is not allowed. Please run "sudo chown -R $(whoami) '${baseDir}'" to grant permissions`, err)
6464
return
6565
}
6666
}

0 commit comments

Comments
 (0)