Commit 469d4337 authored by Mikael Salson's avatar Mikael Salson

align.cgi: Don't open FASTA file if an error occured before

parent db808d61
...@@ -80,7 +80,9 @@ int main(int argc, char* argv[]) ...@@ -80,7 +80,9 @@ int main(int argc, char* argv[])
} }
if (!cgi_mode) cout <<ost<<endl; if (!cgi_mode) cout <<ost<<endl;
Fasta fa(fdata, 1, " ", !cgi_mode);
if (! error) {
Fasta fa(fdata, 1, " ", !cgi_mode);
string seq0 = fa.sequence(0); string seq0 = fa.sequence(0);
...@@ -125,6 +127,7 @@ int main(int argc, char* argv[]) ...@@ -125,6 +127,7 @@ int main(int argc, char* argv[])
} }
} }
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment