Browse Source

Rename #error: -> #willError:. Could remove 'super error:' send.

Herby Vojčík 6 years ago
parent
commit
c87a4e331a
1 changed files with 8 additions and 8 deletions
  1. 8 8
      src/Znock/ZnockBase.class.st

+ 8 - 8
src/Znock/ZnockBase.class.st

@@ -41,13 +41,6 @@ ZnockBase >> doesNotUnderstand: aMessage [
 	^ super doesNotUnderstand: aMessage
 ]
 
-{ #category : #public }
-ZnockBase >> error: aString [
-	self response: self newCleanResponse.
-	builtClient customizeResponseBlock: [ :req :res | self error: aString ]
-
-]
-
 { #category : #building }
 ZnockBase >> forwardedSelectors [
 	^ {
@@ -148,7 +141,7 @@ ZnockBase >> response [
 
 { #category : #building }
 ZnockBase >> response: response [
-	self response ifNotNil: [ super error: 'Response already created' ].
+	self response ifNotNil: [ self error: 'Response already created' ].
 	builtClient response: response
 ]
 
@@ -174,3 +167,10 @@ ZnockBase >> waitFor: aDuration [
 	self response.
 	builtClient delay: aDuration
 ]
+
+{ #category : #public }
+ZnockBase >> willError: aString [
+	self response: self newCleanResponse.
+	builtClient customizeResponseBlock: [ :req :res | self error: aString ]
+
+]