Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Report errors individually
Browse files Browse the repository at this point in the history
"There are errors" isn't really a useful error. Make sure
each individual error has a source.
  • Loading branch information
mhutch committed May 17, 2016
1 parent 8f6214f commit eb4b97c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Mono.Addins/Mono.Addins.Database/AddinScanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,8 @@ public void ScanFile (IProgressStatus monitor, string file, AddinScanFolderInfo

if (errors.Count > 0) {
scanSuccessful = false;
monitor.ReportError ("Errors found in add-in '" + file + ":", null);
foreach (string err in errors)
monitor.ReportError (err, null);
monitor.ReportError (string.Format ("{0}: {1}", file, err), null);
}

// Make sure all extensions sets are initialized with the correct add-in id
Expand Down

0 comments on commit eb4b97c

Please sign in to comment.