Skip to content

Commit 9026ed3

Browse files
Fix printing in PGOTO_ERROR and PGOTO_ERROR_VOID (#250)
Print new line by default in `PGOTO_ERROR` and `PGOTO_ERROR_VOID` Co-authored-by: Jean Luca Bez <[email protected]>
1 parent 34ab14f commit 9026ed3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/commons/utils/include/pdc_private.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,14 @@ extern pbool_t err_occurred;
138138
#define PGOTO_ERROR(ret_val, ...) \
139139
do { \
140140
LOG_ERROR(__VA_ARGS__); \
141+
LOG_JUST_PRINT("\n"); \
141142
PGOTO_DONE(ret_val); \
142143
} while (0)
143144

144145
#define PGOTO_ERROR_VOID(...) \
145146
do { \
146147
LOG_ERROR(__VA_ARGS__); \
148+
LOG_JUST_PRINT("\n"); \
147149
PGOTO_DONE_VOID; \
148150
} while (0)
149151

0 commit comments

Comments
 (0)