Skip to content

Commit

Permalink
chore: remove usage for plain Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
fgreinacher committed Sep 11, 2020
1 parent cfd4315 commit 763a86f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public void AddFileFromEmbeddedResource(string path, Assembly resourceAssembly,
{
if (embeddedResourceStream == null)
{
throw new Exception("Resource not found in assembly");
throw new ArgumentException("Resource not found in assembly", nameof(embeddedResourcePath));
}

using (var streamReader = new BinaryReader(embeddedResourceStream))
Expand Down

0 comments on commit 763a86f

Please sign in to comment.