Skip to content

Commit 0e2e248

Browse files
committed
Print error class name if nothing else
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
1 parent 36ac68f commit 0e2e248

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/logdetective_packit/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ async def call_log_detective(
144144
await publish_message(message)
145145
raise ex
146146
except Exception as ex:
147-
msg = f"Request to Log Detective API at {LD_URL} failed with {ex}"
147+
msg = f"Request to Log Detective API at {LD_URL} failed with {type(ex).__name__}: {ex}"
148148
LOG.error(msg=msg)
149149
message = build_error_message(
150150
log_detective_analysis_id=log_detective_analysis_id,

0 commit comments

Comments
 (0)