If we can't create the path return an error.