Raise ArgumentError if no path is provided