Added error when no path is input.