gsl error handling