Versions 175 to 318
Lines 5–11 at 318 (were 5–11 at 175)
66import { type Answer, type BoxRecord, boxGet, boxText, originOf, readBox, signedInServers } from "./box.ts";
8−import { type Config, credentialLabel, findRoot, readConfig } from "./config.ts";
1010
Lines 84–92 at 318 (were 84–90 at 175)
87− : "no key";
8991
Lines 327–340 at 318 (were 325–338 at 175)
325327
327329 * The commonest failures in plain words, with the next step: no credential, a credential the server refuses, and a
328− * server that can't be reached. Anything else is left as it was. `signedIn` is whether the call carried a key or token.
330+ * server that can't be reached. Anything else is left as it was. `sent` names the key or token the call carried, if any.
330−export function plainError(err: unknown, signedIn: boolean): string | undefined {
332+export function plainError(err: unknown, sent: string | undefined, tokenFileUnasked = false): string | undefined {
333− return signedIn
334− ? `The server didn't accept this folder's key: it may be revoked or expired. abso doctor checks it. (${err.message})`
335− : "You're not signed in. Run abso login, then abso join <project>.";
336+ ? `The server didn't accept ${sent}: it may be revoked or expired. abso doctor checks it. (${err.message})`
337+ : `You're not signed in. Run abso login, then abso join <project>.${tokenFileUnasked ? " ~/.abso/token is used only with --token-file." : ""}`;
338340 // A message that already gives its next step (publish's "Run the same command again.") keeps it as the last word.
- MCP
- compare on this site's /mcp
- CLI
- abso diff 175 318 client/src/doctor.ts --json
- JSON
- /christopher/abso-core/compare/175..318?file=client%2Fsrc%2Fdoctor.ts&format=json