File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 9
9
using OpenQA . Selenium . Remote ;
10
10
using OpenQA . Selenium . Support . UI ;
11
11
using OtpNet ;
12
+ using ZstdSharp . Unsafe ;
12
13
13
14
namespace HackMdBackup ;
14
15
@@ -202,7 +203,7 @@ public async Task GetAllNotes()
202
203
}
203
204
catch ( Exception ex )
204
205
{
205
- Console . WriteLine ( $ "Error during list fetch: { ex . Message } == { responseBody } ") ;
206
+ Console . WriteLine ( $ "Error during list fetch: { ex . Message } == { response . StatusCode } | { response . ReasonPhrase } [ { responseBody } ] ") ;
206
207
}
207
208
208
209
if ( notes is { result . Count : 0 } )
@@ -217,6 +218,11 @@ public async Task GetAllNotes()
217
218
Console . WriteLine ( $ "Page { page } : Got { notes . result . Count } - Total { allNotes . Count } ") ;
218
219
page ++ ;
219
220
}
221
+ else
222
+ {
223
+ Console . WriteLine ( "Skipping next page." ) ;
224
+ page ++ ;
225
+ }
220
226
}
221
227
222
228
Console . WriteLine ( "Start reading notes..." ) ;
You can’t perform that action at this time.
0 commit comments