Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Only log errors when something unexpected happens in local node connection
Thomas Scholtes committed 2 years ago
commit e0e659f54a930938b4086658a7fcaa59ce578551
parent d94b78a7843b6eefee9bd566b0ad2514c94f0f7d
1 file changed +3 -3
modified src/lib/httpd.ts
@@ -85,7 +85,6 @@ export async function disconnect() {
      }
    })
    .catch(error => {
-
      console.error(error);
      if (error !== E_CANCELED) {
        throw error;
      }
@@ -126,12 +125,13 @@ async function checkState() {
          update({ state: "running" });
        }
      } catch (error) {
-
        console.error(error);
+
        if (error instanceof TypeError && error.message !== "Failed to fetch") {
+
          console.error(error);
+
        }
        update({ state: "stopped" });
      }
    })
    .catch(error => {
-
      console.error(error);
      if (error !== E_CANCELED && error !== E_TIMEOUT) {
        throw error;
      }