Skip to content

Commit b0a1bbb

Browse files
committed
fix error message to match test expectation
Invalid files were previously caught on a different code path, so this makes the behavior match.
1 parent db64e70 commit b0a1bbb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/LibraryManager/Providers/BaseProvider.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ private OperationResult<LibraryInstallationGoalState> GenerateGoalState(ILibrary
224224
if (library.GetInvalidFiles(filteredFiles) is IReadOnlyList<string> { Count: > 0 } invalidFiles)
225225
{
226226
errors ??= [];
227-
errors.Add(PredefinedErrors.InvalidFilesInLibrary(desiredState.Name, invalidFiles, library.Files.Keys));
227+
string libraryId = LibraryNamingScheme.GetLibraryId(desiredState.Name, desiredState.Version);
228+
errors.Add(PredefinedErrors.InvalidFilesInLibrary(libraryId, invalidFiles, library.Files.Keys));
228229
filteredFiles.RemoveAll(file => invalidFiles.Contains(file));
229230
}
230231

0 commit comments

Comments
 (0)