From 09659a01fdc0ff81d906478203bbd5ebec515f4f Mon Sep 17 00:00:00 2001 From: Daniele Rapetti <5535617+Iximiel@users.noreply.github.com> Date: Tue, 28 Jan 2025 10:52:56 +0100 Subject: [PATCH 1/2] now gen_example won't crash o a "nobadge" status --- src/cltools/GenExample.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cltools/GenExample.cpp b/src/cltools/GenExample.cpp index 97779cb84b..565a0448aa 100644 --- a/src/cltools/GenExample.cpp +++ b/src/cltools/GenExample.cpp @@ -174,6 +174,8 @@ int GenExample::main(FILE* in, FILE*out,Communicator& pc) { ofile<<"with-LOAD-yellow"; } else if(status=="incomplete") { ofile< Date: Tue, 28 Jan 2025 14:51:44 +0100 Subject: [PATCH 2/2] clearer error message --- src/cltools/GenExample.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cltools/GenExample.cpp b/src/cltools/GenExample.cpp index 565a0448aa..78bb71bbb5 100644 --- a/src/cltools/GenExample.cpp +++ b/src/cltools/GenExample.cpp @@ -177,7 +177,7 @@ int GenExample::main(FILE* in, FILE*out,Communicator& pc) { } else if ( status=="nobadge" ) { ofile<<"nobadge-36454F"; } else { - error("unknown status"); + error("unknown status: "+status); } ofile<<".svg\" alt=\"tested on "<"; ofile.flush();