{"record":{"id":"bdf1f452a7f513e1","repo":"Kong/insomnia","slug":"errmsg","errorCode":null,"errorMessage":"${errMsg}","messagePattern":"\\$\\{errMsg\\}","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/insomnia-vcs/src/vcs.ts","lineNumber":1657,"sourceCode":"\n  async _storeSnapshots(snapshots: Snapshot[]) {\n    const promises: Promise<Snapshot>[] = [];\n\n    for (const snapshot of snapshots) {\n      const p = `/projects/${this._backendProjectId()}/snapshots/${snapshot.id}.json`;\n      const promise = this._store.setItem(p, snapshot);\n      // @ts-expect-error -- TSCONVERSION appears to be a genuine error\n      promises.push(promise);\n    }\n\n    await Promise.all(promises);\n  }\n\n  async _storeBranch(branch: Branch) {\n    const errMsg = VCS.validateBranchName(branch.name);\n\n    if (errMsg) {\n      throw new Error(errMsg);\n    }\n\n    branch.modified = new Date();\n    // toLowerCase may introduce issues under case sensitive filesystems\n    return this._store.setItem(\n      `/projects/${this._backendProjectId()}/branches/${encodeBranchName(branch.name).toLowerCase()}.json`,\n      branch,\n    );\n  }\n\n  async _removeBranch(branch: Branch) {\n    return this._store.removeItem(\n      `/projects/${this._backendProjectId()}/branches/${encodeBranchName(branch.name)}.json`,\n    );\n  }\n\n  async _removeProject(project: BackendProject) {\n    console.log(`[sync] Remove local project ${project.id}`);","sourceCodeStart":1639,"sourceCodeEnd":1675,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia-vcs/src/vcs.ts#L1639-L1675","documentation":"Error \"${errMsg}\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia-vcs/src/vcs.ts:1657 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d9bb2b0142600f21309832daea3317942d285984","analyzedAt":"2026-08-26T18:04:05.187Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}