Skip to content

Commit 1629e87

Browse files
committed
Improve reporting of error message if cause is known
Extend the reporting of an error over RPC by the cause of the error if it is known. This then for example not only reports that the signature verification failed but also the reason, such as when an unsigned file was found. Signed-off-by: Stefan Berger <[email protected]>
1 parent e73621f commit 1629e87

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

vllm/v1/engine/core.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,8 +868,11 @@ def _handle_client_request(
868868
output.result = UtilityResult(result)
869869
except BaseException as e:
870870
logger.exception("Invocation of %s method failed", method_name)
871+
message = str(e)
872+
if e.__cause__:
873+
message += f" caused by {e.__cause__}"
871874
output.failure_message = (
872-
f"Call to {method_name} method failed: {str(e)}"
875+
f"Call to {method_name} method failed: {message}"
873876
)
874877
self.output_queue.put_nowait(
875878
(client_idx, EngineCoreOutputs(utility_output=output))

0 commit comments

Comments
 (0)