Skip to content

Commit

Permalink
Added missing variable to format
Browse files Browse the repository at this point in the history
  • Loading branch information
blasterspike committed Apr 21, 2020
1 parent d96739d commit 928dc2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Changelog
1.0a9 (unreleased)
------------------

- Nothing changed yet.

- Missing variable in output in case a directory already exists
[blasterspike]

1.0a8 (2020-02-21)
------------------
Expand Down
3 changes: 2 additions & 1 deletion src/pcloud/pcloudfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ def makedir(self, path, permissions=None, recreate=False):
self.check()
result = self.pcloud.createfolder(path=path)
if result["result"] == 2004:
raise errors.DirectoryExists('Directory "{0}" already exists')
raise errors.DirectoryExists(
'Directory "{0}" already exists'.format(path))
elif result["result"] != 0:
raise errors.CreateFailed(
'Create of directory "{0}" failed with "{1}"'.format(
Expand Down

0 comments on commit 928dc2c

Please sign in to comment.