{"record":{"id":"2809fbd1ec8b4bb7","repo":"lerna/lerna","slug":"euncommit","errorCode":"EUNCOMMIT","errorMessage":"Working tree has uncommitted changes, please commit or remove the following changes before continuing:\n${uncommitted.join(\"\\n\")}","messagePattern":"Working tree has uncommitted changes, please commit or remove the following changes before continuing:\n(.+?)","errorType":"validation","errorClass":"ValidationError","httpStatus":null,"severity":"error","filePath":"libs/core/src/lib/check-working-tree.ts","lineNumber":41,"sourceCode":"}\n\nexport function throwIfReleased({ refCount }) {\n  if (refCount === \"0\") {\n    throw new ValidationError(\n      \"ERELEASED\",\n      \"The current commit has already been released. Please make new commits before continuing.\"\n    );\n  }\n}\n\nconst EUNCOMMIT_MSG =\n  \"Working tree has uncommitted changes, please commit or remove the following changes before continuing:\\n\";\n\nexport function mkThrowIfUncommitted(options = {}) {\n  return function throwIfUncommitted(opts: { isDirty?: boolean }) {\n    if (opts.isDirty) {\n      return collectUncommitted(options).then((uncommitted) => {\n        throw new ValidationError(\"EUNCOMMIT\", `${EUNCOMMIT_MSG}${uncommitted.join(\"\\n\")}`);\n      });\n    }\n  };\n}\n\nexport const throwIfUncommitted = mkThrowIfUncommitted();\n","sourceCodeStart":23,"sourceCodeEnd":48,"githubUrl":"https://github.com/lerna/lerna/blob/35d15a1567932be97759f512d8b8033dad72b411/libs/core/src/lib/check-working-tree.ts#L23-L48","documentation":"Error \"Working tree has uncommitted changes, please commit or remove the following changes before continuing:\n${uncommitted.join(\"\\n\")}\" thrown in lerna/lerna.","triggerScenarios":"Thrown at libs/core/src/lib/check-working-tree.ts:41 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":"35d15a1567932be97759f512d8b8033dad72b411","analyzedAt":"2026-08-27T05:01:00.632Z","schemaVersion":2},"datasetVersion":"2026-08-27T08:17:20.692Z"}