Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Adjusted message for API errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
RequiDev committed Sep 4, 2021
1 parent bd0ed98 commit f1493ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ReModCE/Components/AvatarFavoritesComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ private async void LoginToAPI(APIUser user)
var errorData = await loginResponse.Content.ReadAsStringAsync();
var errorMessage = JsonConvert.DeserializeObject<ApiError>(errorData).Error;

ReLogger.Error($"Could not login to ReMod CE API\nReason: \"{errorMessage}\"");
ReLogger.Error($"Could not login to ReMod CE API: \"{errorMessage}\"");
MelonCoroutines.Start(ShowAlertDelayed($"Could not login to ReMod CE API\nReason: \"{errorMessage}\""));
File.Delete(PinPath);
return;
Expand Down Expand Up @@ -266,7 +266,7 @@ private void FavoriteAvatar(ApiAvatar apiAvatar)
{
var errorMessage = JsonConvert.DeserializeObject<ApiError>(errorData.Result).Error;

ReLogger.Error($"Could not (un)favorite avatar\nReason: \"{errorMessage}\"");
ReLogger.Error($"Could not (un)favorite avatar: \"{errorMessage}\"");
if (favResponse.StatusCode == HttpStatusCode.Unauthorized)
{
MelonCoroutines.Start(ShowAlertDelayed($"Could not (un)favorite avatar\nReason: \"{errorMessage}\""));
Expand Down

0 comments on commit f1493ce

Please sign in to comment.