mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-03 18:50:30 +08:00
Add self hosting explainer to ResponseParseError
This commit is contained in:
@@ -62,14 +62,17 @@ export class ResponseParseError extends Error {
|
||||
|
||||
let description: string;
|
||||
if (!satisfies(nodeApiVersion, explorerRequiredApiVersion)) {
|
||||
description = `The node you are fetching from (v${nodeApiVersion}) doesn't match the version requirements of the web client ${explorerRequiredApiVersion}.`;
|
||||
description = `The node you are fetching from (v${nodeApiVersion}) doesn't match the version requirements of <code>radicle-explorer</code> ${explorerRequiredApiVersion}.`;
|
||||
} else {
|
||||
description = `The node (v${nodeApiVersion}) matches the version requirement of the web client (${explorerRequiredApiVersion}), but the web client isn't able to parse the response.`;
|
||||
description = `The node (v${nodeApiVersion}) matches the version requirement of <code>radicle-explorer</code> (${explorerRequiredApiVersion}), but <code>radicle-explorer</code> isn't able to parse the response.`;
|
||||
}
|
||||
this.apiVersion = apiVersion;
|
||||
this.description =
|
||||
"The response received from the seed does not match the expected schema.<br/>".concat(
|
||||
description,
|
||||
config.deploymentId
|
||||
? ""
|
||||
: "<br/>If you are self-hosting <code>radicle-explorer</code> and run into this error, try to clear the browser's <code>localStorage</code> and the cache.",
|
||||
);
|
||||
|
||||
this.method = method;
|
||||
|
||||
Reference in New Issue
Block a user