From 5f04d964e5f8bb9fb6b4ad193cb6083770f114e7 Mon Sep 17 00:00:00 2001 From: Kaan Ozkan Date: Tue, 4 Aug 2026 09:39:31 -0400 Subject: [PATCH] Handle all annotation source request failures Treat any error while fetching an HTTP annotation source as an unavailable source. This lets annotations continue with other configured sources when network failures such as connection resets occur. --- lib/tapioca/commands/annotations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tapioca/commands/annotations.rb b/lib/tapioca/commands/annotations.rb index d807def32..2a076ce44 100644 --- a/lib/tapioca/commands/annotations.rb +++ b/lib/tapioca/commands/annotations.rb @@ -187,7 +187,7 @@ def fetch_http_file(repo_uri, path) say_http_error(path, repo_uri, message: response.class) nil end - rescue SocketError, Errno::ECONNREFUSED => e + rescue => e say_http_error(path, repo_uri, message: e.message) nil end