MCPcopy Create free account
hub / github.com/bitwarden/clients / importErrorReasonText

Method importErrorReasonText

apps/cli/src/tools/import.command.ts:230–243  ·  view source on GitHub ↗
(reason: ImportRecordErrorReason)

Source from the content-addressed store, hash-verified

228 }
229
230 private importErrorReasonText(reason: ImportRecordErrorReason): string {
231 switch (reason) {
232 case ImportRecordErrorReason.SshKeyParseFailed:
233 return "SSH key could not be imported";
234 case ImportRecordErrorReason.UnsupportedType:
235 return "unsupported item type";
236 case ImportRecordErrorReason.UnsupportedFeature:
237 return "unsupported feature";
238 case ImportRecordErrorReason.FolderDecryptionFailed:
239 return "folder could not be decrypted";
240 default:
241 return "could not be imported";
242 }
243 }
244
245 private async list() {
246 const options = this.importService

Callers 1

importMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected