aboutsummaryrefslogtreecommitdiff
path: root/src/param.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/param.cpp')
-rw-r--r--src/param.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/param.cpp b/src/param.cpp
index dce55e0..3b319e9 100644
--- a/src/param.cpp
+++ b/src/param.cpp
@@ -350,6 +350,7 @@ void PARAM::ReadFiles(void) {
igzstream infile(file_mbfile.c_str(), igzstream::in);
if (!infile) {
cout << "error! fail to open mbfile file: " << file_mbfile << endl;
+ error = true;
return;
}
@@ -437,6 +438,7 @@ void PARAM::ReadFiles(void) {
igzstream infile(file_mgeno.c_str(), igzstream::in);
if (!infile) {
cout << "error! fail to open mgeno file: " << file_mgeno << endl;
+ error = true;
return;
}
@@ -504,8 +506,8 @@ void PARAM::ReadFiles(void) {
}
if (ni_test == 0) {
- error = true;
cout << "error! number of analyzed individuals equals 0. " << endl;
+ error = true;
return;
}
}