Skip to content

Commit

Permalink
fix permission required error cmd/run forwarding and standard fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapaezbas committed Sep 16, 2024
1 parent 44efce4 commit 1b020e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion errors.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'
class PearError extends Error {
static define (code, defmsg, props = null) {
this[code] = {
this[code] = {
[code]: class extends this {
constructor (msg = defmsg, info = null) {
super(msg, code, info)
Expand Down
2 changes: 1 addition & 1 deletion run/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ module.exports = async function run ({ ipc, args, cmdArgs, link, storage, detach
const { startId, host, id, type = 'desktop', bundle, bail } = await ipc.start({ flags, env: ENV, dir, link, cwd, args: appArgs, cmdArgs })

if (bail?.code === 'ERR_PERMISSION_REQUIRED' && !flags.detach) {
throw new ERR_PERMISSION_REQUIRED('Permission required to run key', { key: bail.info.key, info: bail.info.encrypted })
throw new ERR_PERMISSION_REQUIRED('Permission required to run key', bail.info)
}

if (type === 'terminal') {
Expand Down

0 comments on commit 1b020e6

Please sign in to comment.