File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -105,5 +105,6 @@ types:
105105 properties :
106106 code : string
107107 message : string
108+ ray_id : string
108109 documentation : optional<string>
109110 metadata : optional<ErrorMetadata>
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ pub struct ErrorReply {
1313 #[ serde( skip_serializing_if = "Option::is_none" ) ]
1414 pub code : Option < String > ,
1515 pub message : String ,
16+ pub ray_id : Uuid ,
1617 #[ serde( skip_serializing_if = "Option::is_none" ) ]
1718 pub documentation : Option < String > ,
1819 #[ serde( skip_serializing_if = "Option::is_none" ) ]
@@ -42,7 +43,7 @@ pub fn handle_rejection(
4243 } else {
4344 err_code ! (
4445 ERROR ,
45- error = format! ( "An internal error has occurred (ray_id {}) ." , ray_id )
46+ error = "An internal error has occurred." ,
4647 )
4748 }
4849 }
@@ -98,6 +99,7 @@ pub fn handle_rejection(
9899 let error_reply = ErrorReply {
99100 code,
100101 message,
102+ ray_id,
101103 documentation,
102104 metadata,
103105 } ;
You can’t perform that action at this time.
0 commit comments