Skip to content

Commit 4b01af5

Browse files
authored
Merge pull request #50 from ccbrown/expand-api-error-msg
expand api error msg
2 parents 9a27a77 + 3a86942 commit 4b01af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnxruntime/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ pub enum NonMatchingDimensionsError {
117117
#[derive(Error, Debug)]
118118
pub enum OrtApiError {
119119
/// Details as reported by the ONNX C API in case of error
120-
#[error("Error calling ONNX Runtime C function")]
120+
#[error("Error calling ONNX Runtime C function: {0}")]
121121
Msg(String),
122122
/// Details as reported by the ONNX C API in case of error cannot be converted to UTF-8
123123
#[error("Error calling ONNX Runtime C function and failed to convert error message to UTF-8")]

0 commit comments

Comments
 (0)