Raise error when no path was given