Skip to content

Commit

Permalink
even more
Browse files Browse the repository at this point in the history
  • Loading branch information
mlapaglia committed Jul 8, 2021
1 parent d5d4199 commit d77387a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenAlprWebhookProcessor/Alerts/Pushover/PushoverClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ public async Task VerifyCredentialsAsync(CancellationToken cancellationToken)
{
var message = await result.Content.ReadAsStringAsync(cancellationToken);
logger.LogError("Pushover credential check failed: " + message);
throw new InvalidOperationException("Validation failed.");
}

logger.LogInformation("Pushover credentials are valid.");
}
catch (Exception ex)
{
logger.LogError(ex, "Pushover credential check failed: " + ex.Message);
throw;
}
}
}
Expand Down

0 comments on commit d77387a

Please sign in to comment.