Display error message if no path is given