Skip to content

Commit ba4b813

Browse files
committed
chore: improve error message for multiple implementations when single result is expected
1 parent b097ef5 commit ba4b813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simplug.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def _get_results(
396396
if len(calls) > 1:
397397
warnings.warn(
398398
f"More than one implementation of {self.name} found, "
399-
"but no plugin was specified. Using the last one.",
399+
"but a single result is expected. Using the last one.",
400400
MultipleImplsForSingleResultHookWarning,
401401
)
402402
return makecall(calls[-1])

0 commit comments

Comments
 (0)