diff --git a/src/Soil-Core/SoilBackupVisitor.class.st b/src/Soil-Core/SoilBackupVisitor.class.st index c87191db..6d66f660 100644 --- a/src/Soil-Core/SoilBackupVisitor.class.st +++ b/src/Soil-Core/SoilBackupVisitor.class.st @@ -29,7 +29,7 @@ SoilBackupVisitor >> copyIndexAt: indexId segment: segmentId [ sourceSegment := source objectRepository segmentAt: segmentId. sourceIndex := sourceSegment indexManager loadIndexWithId: indexId - ifNone: [ Error signal: 'cannot find index with id ', indexId printString ]. + ifNone: [ ^ self indexNotFound: indexId ]. "create an index of same kind and configuration in the target database" targetSegment := target objectRepository segmentAt: segmentId. @@ -51,6 +51,11 @@ SoilBackupVisitor >> copyIndexAt: indexId segment: segmentId [ close. ] +{ #category : #visiting } +SoilBackupVisitor >> indexNotFound: indexId [ + Error signal: 'cannot find index with id ', indexId printString +] + { #category : #initialization } SoilBackupVisitor >> initialize [ super initialize.