Radish alpha
r
rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5
Radicle web interface
Radicle
Git
Add self hosting explainer to `ResponseParseError`
Sebastian Martinez committed 1 year ago
commit 20b3ac38557ff3687cdd23955a2dc0d8450f8eae
parent 249f274
1 file changed +5 -2
modified http-client/lib/fetcher.ts
@@ -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;