Skip to content

Commit

Permalink
Adds mention of copy constructors to terminating error (#1294)
Browse files Browse the repository at this point in the history
  • Loading branch information
aivascu authored Sep 30, 2021
1 parent 3d03828 commit 213e4f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/AutoFixture/Kernel/TerminatingSpecimenBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public object Create(object request, ISpecimenContext context)
throw new ObjectCreationException(
string.Format(
CultureInfo.CurrentCulture,
"AutoFixture was unable to create an instance from {0}, most likely because it has no public constructor, is an abstract or non-public type.",
"AutoFixture was unable to create an instance from {0}, most likely because it has no public non-copy constructor, is an abstract or non-public type.",
request));
}
}
Expand Down

0 comments on commit 213e4f3

Please sign in to comment.