Skip to content

Commit 9d10ac4

Browse files
authored
Fix typos in error messages of buffer_interface.py (#489)
1 parent 06e9a4f commit 9d10ac4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tf2_ros/src/tf2_ros/buffer_interface.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class NotImplementedException(Exception):
186186
subclass of :class:`tf2_ros.buffer_interface.BufferInterface`.
187187
"""
188188
def __init__(self):
189-
self.errstr = 'CanTransform or LookupTransform not implemented'
189+
self.errstr = 'CanTransform or LookupTransform is not implemented'
190190

191191

192192
class TransformRegistration():
@@ -200,7 +200,7 @@ def add(self, key, callback):
200200

201201
def get(self, key):
202202
if not key in TransformRegistration.__type_map:
203-
raise TypeException('Type %s if not loaded or supported'% str(key))
203+
raise TypeException('Type %s is not loaded or supported'% str(key))
204204
else:
205205
return TransformRegistration.__type_map[key]
206206

@@ -220,19 +220,19 @@ def add_convert(self, key, callback):
220220

221221
def get_from_msg(self, key):
222222
if not key in ConvertRegistration.__from_msg_map:
223-
raise TypeException('Type %s if not loaded or supported'% str(key))
223+
raise TypeException('Type %s is not loaded or supported'% str(key))
224224
else:
225225
return ConvertRegistration.__from_msg_map[key]
226226

227227
def get_to_msg(self, key):
228228
if not key in ConvertRegistration.__to_msg_map:
229-
raise TypeException('Type %s if not loaded or supported'%str(key))
229+
raise TypeException('Type %s is not loaded or supported'%str(key))
230230
else:
231231
return ConvertRegistration.__to_msg_map[key]
232232

233233
def get_convert(self, key):
234234
if not key in ConvertRegistration.__convert_map:
235-
raise TypeException("Type %s if not loaded or supported" % str(key))
235+
raise TypeException("Type %s is not loaded or supported" % str(key))
236236
else:
237237
return ConvertRegistration.__convert_map[key]
238238

0 commit comments

Comments
 (0)