diff --git a/etiquette/exceptions.py b/etiquette/exceptions.py index 2a84b62..c16f3dd 100644 --- a/etiquette/exceptions.py +++ b/etiquette/exceptions.py @@ -203,7 +203,7 @@ class NoClosestPhotoDB(EtiquetteException): For calls to PhotoDB.closest_photodb where none exists between cwd and drive root. ''' - error_message = 'There is no PhotoDB in {} or its parents.' + error_message = 'There is no PhotoDB in "{}" or its parents.' class NoYields(EtiquetteException): ''' diff --git a/etiquette/photodb.py b/etiquette/photodb.py index 00a1a4f..8e60946 100644 --- a/etiquette/photodb.py +++ b/etiquette/photodb.py @@ -1967,7 +1967,7 @@ class PhotoDB( break parent = path.parent if path == parent: - raise exceptions.NoClosestPhotoDB(cwd) + raise exceptions.NoClosestPhotoDB(cwd.absolute_path) path = parent path = path.with_child(constants.DEFAULT_DATADIR)