Capitalize error messages from yaml_fs storage backend
Signed-off-by: martin f. krafft <madduck@madduck.net>
diff --git a/reclass/storage/yaml_fs/directory.py b/reclass/storage/yaml_fs/directory.py
index c118958..efc4996 100644
--- a/reclass/storage/yaml_fs/directory.py
+++ b/reclass/storage/yaml_fs/directory.py
@@ -22,9 +22,9 @@
def __init__(self, path, fileclass=None):
''' Initialise a directory object '''
if not os.path.isdir(path):
- raise NotFoundError('no such directory: %s' % path)
+ raise NotFoundError('No such directory: %s' % path)
if not os.access(path, os.R_OK|os.X_OK):
- raise NotFoundError('cannot change to or read directory: %s' % path)
+ raise NotFoundError('Cannot change to or read directory: %s' % path)
self._path = path
self._fileclass = fileclass
self._files = {}
diff --git a/reclass/storage/yaml_fs/yamlfile.py b/reclass/storage/yaml_fs/yamlfile.py
index a5933f6..b6dbdc2 100644
--- a/reclass/storage/yaml_fs/yamlfile.py
+++ b/reclass/storage/yaml_fs/yamlfile.py
@@ -16,9 +16,9 @@
def __init__(self, path):
''' Initialise a yamlfile object '''
if not os.path.isfile(path):
- raise NotFoundError('no such file: %s' % path)
+ raise NotFoundError('No such file: %s' % path)
if not os.access(path, os.R_OK):
- raise NotFoundError('cannot open: %s' % path)
+ raise NotFoundError('Cannot open: %s' % path)
self._path = path
self._data = dict()
self._read()