From a36edab98434100422550d7271e54a723350ee38 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Fri, 18 Jul 2025 17:04:53 +0200 Subject: Fix shell return value on solverinfo --- shell/shell.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'shell/shell.c') diff --git a/shell/shell.c b/shell/shell.c index 1fa854f..a9a1bc7 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -282,9 +282,12 @@ solverinfo_exec(args_t *args) char buf[NISSY_SIZE_DATAID]; ret = nissy_solverinfo(args->str_solver, buf); - if (ret < 0) + if (ret < 0) { fprintf(stderr, "Unknown error (make sure solver is valid)\n"); - printf("%" PRId64 "\n%s\n", ret, buf); + } else { + printf("%" PRId64 "\n%s\n", ret, buf); + ret = 0; + } return ret; } -- cgit v1.3