Skip to content

Commit

Permalink
refactor(logging): Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Belphemur committed Oct 24, 2021
1 parent 9004f64 commit bbc1cb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -36,7 +36,7 @@ public string GetPersistedDefaultAudioEndpoint(uint processId, EDataFlow flow, E
{
if (result != HRESULT.PROCESS_NO_AUDIO)
{
throw new InvalidComObjectException($"Can't set the persistent audio endpoint: {result}");
throw new InvalidComObjectException($"Can't get the persistent audio endpoint: {result}");
}

return null;
Expand Down
Expand Up @@ -93,7 +93,7 @@ public void SetDefaultEndPoint(string deviceId, EDataFlow flow, IEnumerable<ERol
}
catch (Exception ex)
{
_log.Error(ex, "Can't get the default enpoint");
_log.Error(ex, "Can't get the default endpoint");
}

return null;
Expand Down

0 comments on commit bbc1cb9

Please sign in to comment.