Change the error message of resource listing in mongodb
Seems that NotImplementedError can not be captured for some API level test cases. So change the error message here that it can be captured. Change-Id: I0ed87d3be8c908f7a23af6c24531e28d693c3240
This commit is contained in:
parent
9fe6b6eeae
commit
95d84fce83
@ -534,9 +534,9 @@ class Connection(base.Connection):
|
||||
:param sort_dir: Direction with which results be sorted(asc, desc).
|
||||
"""
|
||||
|
||||
if marker_pairs is not None:
|
||||
if marker_pairs:
|
||||
raise NotImplementedError(
|
||||
"Cannot use marker pairs in resource listing")
|
||||
"Cannot use marker pairs in resource listing, not implemented")
|
||||
|
||||
q = {}
|
||||
if user is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user