You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
problem
Currently, running notion-enhancer without root (sudo) or admin rights gives out some really cryptic and verbose messages. solution
EACCESS exception should be handled gracefully, showing short and meaningful messages to the user without any technical experience.
See this example:
[nek@NekLinux bin]$ notion-enhancer apply
=== NOTION ENHANCEMENT LOG ===
...unpacking app.asar
### ERROR ###
Error: EACCES: permission denied, mkdir '/opt/notion-app/app'
at Object.mkdirSync (fs.js:947:3)
at Object.promisified.mkdirpSync (/usr/lib/node_modules/notion-enhancer/node_modules/asar/lib/wrapped-fs.js:24:38)
at module.exports.extractAll (/usr/lib/node_modules/notion-enhancer/node_modules/asar/lib/asar.js:177:6)
at module.exports (/usr/lib/node_modules/notion-enhancer/pkg/apply.js:60:5)
at async CAC.<anonymous> (/usr/lib/node_modules/notion-enhancer/bin.js:28:5) {
errno: -13,
syscall: 'mkdir',
code: 'EACCES',
path: '/opt/notion-app/app'
}
=== END OF LOG ===
[nek@NekLinux bin]$ sudo notion-enhancer apply
=== NOTION ENHANCEMENT LOG ===
...unpacking app.asar
...patching app launcher (notion-app linux wrappers only).
...recording enhancement version.
~~ success.
=== END OF LOG ===
The text was updated successfully, but these errors were encountered:
problem
Currently, running notion-enhancer without root (sudo) or admin rights gives out some really cryptic and verbose messages.
solution
EACCESS exception should be handled gracefully, showing short and meaningful messages to the user without any technical experience.
See this example:
The text was updated successfully, but these errors were encountered: