Skip to content

Commit

Permalink
Log errors to Console.Error stream
Browse files Browse the repository at this point in the history
  • Loading branch information
kev-le committed Feb 20, 2024
1 parent abf11a8 commit e4d2b15
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions StudioClient/DownloadHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public partial class StudioClient
}
catch (HttpRequestException ex)
{
Console.WriteLine($"Error downloading image: {ex.Message}");
Console.Error.WriteLine($"Error downloading image: {ex.Message}");
return null;
}
}
Expand Down Expand Up @@ -70,7 +70,7 @@ private async Task<bool> DownloadReplacedBackgroundImage(string fileName, Image
}
catch (Exception ex)
{
Console.WriteLine($"Error downloading background image: {ex.Message}");
Console.Error.WriteLine($"Error downloading background image: {ex.Message}");
return false;
}
}
Expand Down Expand Up @@ -98,7 +98,7 @@ public async Task<bool> DownloadAllPhotos(JArray photosList, dynamic profile, st

return true;
} catch (Exception _e) {
Console.WriteLine(_e);
Console.Error.WriteLine(_e);
return false;
}
}
Expand Down Expand Up @@ -148,8 +148,8 @@ public async Task<bool> DownloadPhoto(long photoId, string outputPath, dynamic?
return true;
} catch (Exception _e)
{
Console.WriteLine($"Failed to download photo id: {photoId}");
Console.WriteLine(_e);
Console.Error.WriteLine($"Failed to download photo id: {photoId}");
Console.Error.WriteLine(_e);
return false;
}
}
Expand Down

0 comments on commit e4d2b15

Please sign in to comment.