rnsf

Define and load a phase function data format
git clone git://git.meso-star.fr/rnsf.git
Log | Files | Refs | README | LICENSE

commit c9c08433f0f00a7c117937fd0147b61a3b26ed4f
parent 0b89de5bb1130f3af4f424cd10e1718c5a879b90
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu,  7 Jul 2022 11:23:09 +0200

Handle errors when configuring the default logger

Diffstat:
Msrc/rnsf.c | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/rnsf.c b/src/rnsf.c @@ -705,7 +705,15 @@ rnsf_create if(args->logger) { rnsf->logger = args->logger; } else { - setup_log_default(rnsf); + res = setup_log_default(rnsf); + if(res != RES_OK) { + if(args->verbose) { + fprintf(stderr, MSG_ERROR_PREFIX + "Could not setup the default logger " + "of the Rad-Net Scattering Function library.\n"); + } + goto error; + } } exit: