Skip to content

Commit 806eef9

Browse files
committed
Hotfix - fix minor bugs in error logging in sxp CLI
V0.13.1
1 parent 36a3d9e commit 806eef9

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# begin basic metadata
22
cmake_minimum_required(VERSION 3.0)
33

4-
project(saxbospiral VERSION 0.13.0 LANGUAGES C)
4+
project(saxbospiral VERSION 0.13.1 LANGUAGES C)
55
set(CMAKE_C_STANDARD 99)
66
set(CMAKE_C_STANDARD_REQUIRED ON)
77
set(

saxbospiral.png

0 Bytes
Loading

sxp.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ static bool handle_error(status_t result) {
124124
if(result.diagnostic != OPERATION_OK) {
125125
fprintf(
126126
stderr,
127-
"Error code %s when trying to initialise spiral from raw data\n",
128-
error_code_string(result.diagnostic)
127+
"Error Code: %s\n", error_code_string(result.diagnostic)
129128
);
130129
return true;
131130
} else {
@@ -188,8 +187,7 @@ bool run(
188187
if(result.status.diagnostic != OPERATION_OK) {
189188
fprintf(
190189
stderr,
191-
"Error when trying to initialise spiral from raw data\n"
192-
"Generic Error: %s\nFile Loader Error: %s\n",
190+
"Error Code:\t\t%s\nFile Error Code:\t%s\n",
193191
error_code_string(result.status.diagnostic),
194192
file_error_code_string(result.diagnostic)
195193
);
@@ -222,8 +220,7 @@ bool run(
222220
if(result.status.diagnostic != OPERATION_OK) {
223221
fprintf(
224222
stderr,
225-
"Error when trying to initialise spiral from raw data\n"
226-
"Generic Error: %s\nFile Loader Error: %s\n",
223+
"Error Code:\t\t%s\nFile Error Code:\t%s\n",
227224
error_code_string(result.status.diagnostic),
228225
file_error_code_string(result.diagnostic)
229226
);

0 commit comments

Comments
 (0)