diff --git a/src/qlever/commands/example_queries.py b/src/qlever/commands/example_queries.py index bb1f41a7..0446274f 100644 --- a/src/qlever/commands/example_queries.py +++ b/src/qlever/commands/example_queries.py @@ -386,11 +386,12 @@ def execute(self, args) -> bool: error_msg["long"] = ( error_msg["long"][: args.width_error_message - 3] + "..." ) + seperator_short_long = "\n" if args.show_query == "on-error" else " " log.info( f"{description:<{args.width_query_description}} " f"{colored('FAILED ', 'red')}" f"{colored(error_msg['short'], 'red')}" - f"{'\n' if args.show_query == 'on-error' else ' '}" + f"{seperator_short_long}" f"{colored(error_msg['long'], 'red')}" ) if args.show_query == "on-error":