Skip to content

Commit

Permalink
Merge pull request DbKeeperNet#52 from voloda/issue-51
Browse files Browse the repository at this point in the history
Issue#51 - fix messages for exception to improve investigation
  • Loading branch information
voloda authored Jan 16, 2019
2 parents ceb6c22 + 134733d commit 7971e3e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public Stream GetScriptStreamFromLocation()
var parameters = _resourceName.Split(',');

if (parameters.Length != 2)
throw new InvalidOperationException();
throw new InvalidOperationException($"Expecting embedded resource '{_resourceName}' to consist of two comma separated values");

var assemblyName = parameters[1];
var resource = parameters[0];
Expand All @@ -28,7 +28,7 @@ public Stream GetScriptStreamFromLocation()

if (updates == null)
{
throw new InvalidOperationException();
throw new InvalidOperationException($"Embedded resource '{_resourceName}' wasn't found");
}

return updates;
Expand Down

0 comments on commit 7971e3e

Please sign in to comment.