Skip to content

Commit 757c625

Browse files
committed
Adds the collection name to the configuration load error message to facilitate troubleshooting.
1 parent 338eea2 commit 757c625

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/palace/manager/integration/license/overdrive

src/palace/manager/integration/license/overdrive/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,8 @@ def collection_token(self) -> str:
416416
if error:
417417
message = library.get("message")
418418
raise CannotLoadConfiguration(
419-
"Overdrive credentials are valid but could not fetch library: %s"
420-
% message
419+
f"Overdrive credentials are valid but could not fetch library: {message}"
420+
f' - collection: "{self.collection.name}"'
421421
)
422422
token = cast(str, library["collectionToken"])
423423
self._cached_collection_token = OverdriveToken(

0 commit comments

Comments
 (0)