diff options
author | Peter Carbonetto | 2017-08-14 21:50:00 -0500 |
---|---|---|
committer | GitHub | 2017-08-14 21:50:00 -0500 |
commit | a6eca6837cf1eedb3a660dd434b05389c3ec4e95 (patch) | |
tree | e11ee6858159b53b2570273f9ba3d1ac882232f7 /src/main.cpp | |
parent | 3763f477e17a74942e1bf545aa9493d39bf9448e (diff) | |
parent | ff1252fe3db1ba639fe148f45b0408a4f182da0d (diff) | |
download | pangemma-a6eca6837cf1eedb3a660dd434b05389c3ec4e95.tar.gz |
Merge pull request #68 from genenetwork/issue26.
Tests and fixes https://github.com/genetics-statistics/GEMMA/issues/26.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 833136c..e37b154 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -25,10 +25,20 @@ using namespace std; +void gemma_gsl_error_handler (const char * reason, + const char * file, + int line, int gsl_errno) { + cerr << "GSL ERROR: " << reason << " in " << file + << " at line " << line << " errno " << gsl_errno <<endl; + exit(22); +} + int main(int argc, char *argv[]) { GEMMA cGemma; PARAM cPar; + gsl_set_error_handler (&gemma_gsl_error_handler); + if (argc <= 1) { cGemma.PrintHeader(); return EXIT_SUCCESS; |