Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F11023671
D1997.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
951 B
Subscribers
None
D1997.diff
View Options
diff --git a/swh/journal/client.py b/swh/journal/client.py
--- a/swh/journal/client.py
+++ b/swh/journal/client.py
@@ -62,14 +62,14 @@
object_types = ACCEPTED_OBJECT_TYPES
if auto_offset_reset not in ACCEPTED_OFFSET_RESET:
raise ValueError(
- 'Option \'auto_offset_reset\' only accept %s.' %
- ACCEPTED_OFFSET_RESET)
+ 'Option \'auto_offset_reset\' only accept %s, not %s' %
+ (ACCEPTED_OFFSET_RESET, auto_offset_reset))
for object_type in object_types:
if object_type not in ACCEPTED_OBJECT_TYPES:
raise ValueError(
- 'Option \'object_types\' only accepts %s.' %
- ACCEPTED_OFFSET_RESET)
+ 'Option \'object_types\' only accepts %s, not %s.' %
+ (ACCEPTED_OBJECT_TYPES, object_type))
self.value_deserializer = kafka_to_value
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 17, 4:55 PM (21 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3220404
Attached To
D1997: Improve error messages raised by JournalClient.
Event Timeline
Log In to Comment