fix(cli): preserve unsupported historical-source imports (#795)

This commit is contained in:
N0zoM1z0
2026-10-07 04:02:10 +08:00
committed by GitHub
parent b62931f833
commit 911d580634
8 changed files with 85 additions and 5 deletions
@@ -92,6 +92,7 @@ describe("reference source import error projection", () => {
const expectedCategories = {
cancelled: "cancelled",
"invalid-root": "invalid_input",
unsupported: "unsupported_host",
io: "execution_failure",
parse: "execution_failure",
} as const;
@@ -104,7 +105,9 @@ describe("reference source import error projection", () => {
expect(projected.category).toBe(category);
expect(projected.message).not.toContain("SECRET");
expect(projected.message).not.toContain("/private/path");
expect(projected.message).toMatch(/try again|when ready|Check that/u);
expect(projected.message).toMatch(
/try again|when ready|Check that|REA on Linux/u,
);
}
});
});