Fehlerbehandlung
Debug statt Console https://learn.microsoft.com/en-us/dotnet/maui/data-cloud/rest?view=net-maui-8.0
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
@@ -45,7 +46,7 @@ namespace Jugenddienst_Stunden.Models {
|
||||
//return responseData;
|
||||
} catch (HttpRequestException e) {
|
||||
// Fehlerbehandlung
|
||||
Console.WriteLine($"An error occurred: {e.Message}");
|
||||
Debug.WriteLine($"An error occurred: {e.Message}");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user