Skip to content

Commit

Permalink
Better visibility for problems with parameter types deserialization
Browse files Browse the repository at this point in the history
Relates to #1512 and #1621
  • Loading branch information
odinserj committed Sep 15, 2020
1 parent ec37593 commit 9e130cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hangfire.Core/Storage/InvocationData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public Job DeserializeJob()
{
var parametersString = parameterTypes != null
? String.Join(", ", parameterTypes.Select(x => x.Name))
: String.Empty;
: ParameterTypes ?? String.Empty;

throw new InvalidOperationException(
$"The type `{type.FullName}` does not contain a method with signature `{Method}({parametersString})`");
Expand Down

0 comments on commit 9e130cf

Please sign in to comment.