Skip to content

Commit cf5039d

Browse files
more debugging
1 parent d0b869b commit cf5039d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

HackMdApi.cs

+7-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using OpenQA.Selenium.Remote;
1010
using OpenQA.Selenium.Support.UI;
1111
using OtpNet;
12+
using ZstdSharp.Unsafe;
1213

1314
namespace HackMdBackup;
1415

@@ -202,7 +203,7 @@ public async Task GetAllNotes()
202203
}
203204
catch (Exception ex)
204205
{
205-
Console.WriteLine($"Error during list fetch: {ex.Message} == {responseBody}");
206+
Console.WriteLine($"Error during list fetch: {ex.Message} == {response.StatusCode}|{response.ReasonPhrase} [{responseBody}]");
206207
}
207208

208209
if (notes is { result.Count: 0 })
@@ -217,6 +218,11 @@ public async Task GetAllNotes()
217218
Console.WriteLine($"Page {page}: Got {notes.result.Count} - Total {allNotes.Count}");
218219
page++;
219220
}
221+
else
222+
{
223+
Console.WriteLine("Skipping next page.");
224+
page++;
225+
}
220226
}
221227

222228
Console.WriteLine("Start reading notes...");

0 commit comments

Comments
 (0)