File 4891-gh-Add-more-debug-info-to-pr-sync.patch of Package erlang

From cda0a5c0c935e28f77b6ebd713ca3b369f1d5735 Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Wed, 5 Jul 2023 14:39:57 +0200
Subject: [PATCH] gh: Add more debug info to pr sync

---
 .github/scripts/sync-github-prs.es | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.github/scripts/sync-github-prs.es b/.github/scripts/sync-github-prs.es
index 6560ae5e02..0affbd6c7d 100755
--- a/.github/scripts/sync-github-prs.es
+++ b/.github/scripts/sync-github-prs.es
@@ -68,6 +68,9 @@ handle_pr(_Repo, Target,
             io:format("Checking for ~ts~n", [filename:join(PRDir, Ident)]),
             case file:read_file_info(filename:join(PRDir, Ident)) of
                 {error, enoent} ->
+                    io:format("Did not find ~ts. Files in dir are: ~p~n",
+                              [filename:join(PRDir, Ident),
+                               filelib:wildcard(filename:join(PRDir, "*"))]),
                     cmd("rm -rf "++PRDir),
                     ok = file:make_dir(PRDir),
                     ok = file:write_file(filename:join(PRDir,Ident), integer_to_list(Number)),
-- 
2.35.3

openSUSE Build Service is sponsored by