Commit 96716d87 authored by Mathieu Valois's avatar Mathieu Valois
Browse files

add error when file is empty

parent 6ba42ee2
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -109,6 +109,7 @@ int Statsgen::generate_stats() {
	if (!is_stdin){
		nbline = nbline_file(filename);
		if (!nbline){ // error reading the file
			cerr << "[ERROR] Empty file or not existing file" << endl;
			return 0;
		}
	}