commit af31040d10f76b901f7b67fa81ea7cd9e8408db4
parent 15b673b481fe50396cc9b6fc8d89fd72782a30f6
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date: Thu, 29 Sep 2016 15:37:15 +0200
Add an error log
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/ssol_solver.c b/src/ssol_solver.c
@@ -798,7 +798,10 @@ ssol_solve
/* must retry failed realisations */
if (rs.end == TERM_ERR) {
CHECK(fsetpos(output, &real_start), 0);
- if (++err_count > 10) goto error;
+ if (++err_count > 10) {
+ log_error(scene->dev, "%s: too many failures.\n", FUNC_NAME);
+ goto error;
+ }
}
else r++;
} while (rs.end == TERM_ERR);