Skip to content

Commit

Permalink
Chaging the error macros string for the cases of renaming.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbragagnolo committed Oct 25, 2019
1 parent 64c9a9c commit f7726c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Refactoring-Core/RBCondition.class.st
Expand Up @@ -200,7 +200,7 @@ RBCondition class >> hierarchyOf: aClass canUnderstand: aSelector [
^self new
type: (Array with: #hierarchyUnderstandsSelector with: aClass with: aSelector)
block: [aClass hierarchyDefinesMethod: aSelector]
errorString: aClass printString , ' <1?or a subclass:and all subclasses do not> understand<1?s:> ' , aSelector printString
errorString: aClass printString , ' <1? and/or part of it''s Hierarchy already: and/or part of it''s Hierarchy do not> understand<1?s:> ' , aSelector printString
]

{ #category : #'instance creation' }
Expand Down
4 changes: 2 additions & 2 deletions src/Refactoring-Core/RBRenameMethodRefactoring.class.st
Expand Up @@ -74,8 +74,8 @@ RBRenameMethodRefactoring >> parseTreeRewriter [
RBRenameMethodRefactoring >> preconditions [
| newCondition |
newCondition := (RBCondition
withBlock: [newSelector = oldSelector]
errorString: 'The selectors are <1?:not >equivalent')
withBlock: [ newSelector = oldSelector ]
errorString: 'The selector name has <1?not:> changed <1?:to #', newSelector, '>')
& (RBCondition
withBlock: [permutation asArray ~= (1 to: oldSelector numArgs) asArray]
errorString: 'The arguments are <1?:not >permuted').
Expand Down

0 comments on commit f7726c0

Please sign in to comment.