#UI_ENHANCEMENT by exept
authorClaus Gittinger <cg@exept.de>
Tue, 03 Dec 2019 21:52:29 +0100
changeset 4519 e0aab139cd66
parent 4518 1e1874f7a287
child 4520 f7e5c7641306
#UI_ENHANCEMENT by exept class: SourceCodeManagerUtilities changed: #diffSetOfProject:againstRepositoryVersionFrom:orTag:extensionsOnly:
SourceCodeManagerUtilities.st
--- a/SourceCodeManagerUtilities.st	Sun Dec 01 05:23:25 2019 +0100
+++ b/SourceCodeManagerUtilities.st	Tue Dec 03 21:52:29 2019 +0100
@@ -3755,10 +3755,14 @@
                 s notNil ifTrue:[s close].
             ].
 
-            currentVersion := ChangeSet forExistingClass:eachClass withExtensions:false withLooseMethods:true.
-            currentVersion := versionMethodsAndDoitsRejected value:currentVersion.
-            diffs := repositoryVersion diffSetsAgainst:currentVersion .
-            diffSet addDiffSet:diffs.
+            ChangeSet::InvalidChangeChunkError handle:[:ex |
+                Dialog information:(resources stringWithCRs:'Failed to fetch source of %1 (source corrupted).\Class skipped in comparison' with:eachClass name)
+            ] do:[
+                currentVersion := ChangeSet forExistingClass:eachClass withExtensions:false withLooseMethods:true.
+                currentVersion := versionMethodsAndDoitsRejected value:currentVersion.
+                diffs := repositoryVersion diffSetsAgainst:currentVersion .
+                diffSet addDiffSet:diffs.
+            ]
         ].
     ].