Like below, logging why the directory could not be created would be helpful, rather than just making the user guess.