(target: string, scope: string)
| 1 | import {GatewayErrorCode} from '@redplanethq/gateway-protocol'; |
| 2 | |
| 3 | export function folderScopeError(target: string, scope: string) { |
| 4 | return { |
| 5 | ok: false as const, |
| 6 | error: { |
| 7 | code: GatewayErrorCode.FOLDER_SCOPE_DENIED, |
| 8 | message: `Path "${target}" is not inside a registered folder with scope "${scope}". Run \`corebrain folder add\`.`, |
| 9 | }, |
| 10 | }; |
| 11 | } |
no outgoing calls
no test coverage detected