1
0
Fork 0

sccp: Use the String>>% anArray way to format error messages

This commit is contained in:
Holger Hans Peter Freyther 2011-04-01 20:00:49 +02:00
parent 6b40cc6866
commit d77a361ba5
1 changed files with 3 additions and 3 deletions

View File

@ -163,7 +163,7 @@ Object subclass: SCCPGTI [
].
].
^ self error: 'Unhandled gti indicator: ', gti_ind asString.
^ self error: 'Unhandled gti indicator: %1' % {gti_ind}.
]
SCCPGTI class >> map: aDigit [
@ -490,7 +490,7 @@ Object subclass: SCCPMessage [
].
"raise exception"
^ Error signal: 'No handler for: ', type asString.
^ Error signal: 'No handler for: %1' % {type}.
]
]
@ -675,7 +675,7 @@ SCCPMessage subclass: SCCPConnectionData [
data := aData.
data size > 16rFF ifTrue: [
self error: 'Data must be < 256 in size.'
self error: 'Data must be < 256 in size but was %1' % {data size}
].
]