Skip to content

Commit

Permalink
Fix error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
labkode committed Jan 27, 2017
1 parent 4f14916 commit acad662
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions root/ocfsmdatadriver/ocfsmdatadriver.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ func (c *Driver) Init(ctx context.Context, user root.User) error {
func (c *Driver) CreateFolder(ctx context.Context, user root.User, path string) error {
localPath := c.getLocalPath(user, path)
if err := os.Mkdir(localPath, 0755); err != nil {
c.logger.Error().Log("error", err)
return err
}
return c.SetDBMetaData(c.GetVirtualPath(user, path), "", c.GetVirtualPath(user, "/"))
Expand Down

0 comments on commit acad662

Please sign in to comment.