Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Add catch clause in commit history fetch
Sebastian Martinez committed 4 years ago
commit 157e025ecad155bdf501c1b18ead1622d1c8704d
parent ce8db417aed9f9c40cca34b349c60c65da434a8f
1 file changed +7 -0
modified src/base/projects/Commit/History.svelte
@@ -57,4 +57,11 @@
      </div>
    {/each}
  </div>
+
{:catch err}
+
  <div class="history">
+
    <div class="error error-message text-xsmall">
+
      <div>API request to <code class="text-xsmall">{err.url}</code> failed.</div>
+
      <div>API needs to be version ^0.2.</div>
+
    </div>
+
  </div>
{/await}