(chunks: Buffer[], chunk: Buffer)
| 268 | } |
| 269 | |
| 270 | function onePasswordAccessError(error: unknown): Error { |
| 271 | const details = error instanceof Error ? error.message.trim() : ''; |
| 272 | return new Error( |
| 273 | [ |
| 274 | `Could not verify 1Password access to the ${VAULT} vault.`, |
| 275 | ...onePasswordInstallInstructions(), |
| 276 | `Verify access with \`op account list --format=json\`, then \`op vault get "${VAULT}" --account ${ONE_PASSWORD_ACCOUNT_URL} --format=json\`.`, |
| 277 | 'If verification says the vault is missing or forbidden, ask for access to that vault.', |
| 278 | details ? `1Password reported:\n${details}` : undefined, |
| 279 | ] |
| 280 | .filter(Boolean) |
| 281 | .join('\n') |
no test coverage detected