Add error message if no file was passed