File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -82,17 +82,18 @@ pub enum ChatTemplateError {
82
82
Utf8Error ( #[ from] std:: str:: Utf8Error ) ,
83
83
}
84
84
85
+ /// Failed fetching metadata value
85
86
#[ derive( Debug , Eq , PartialEq , thiserror:: Error ) ]
86
87
pub enum MetaValError {
87
- #[ error( "model does not have metadata key: {0}" ) ]
88
- MissingKey ( String ) ,
89
-
88
+ /// The provided string contains an unexpected null-byte
90
89
#[ error( "null byte in string {0}" ) ]
91
90
NullError ( #[ from] NulError ) ,
92
91
92
+ /// The returned data contains invalid UTF8 data
93
93
#[ error( "FromUtf8Error {0}" ) ]
94
94
FromUtf8Error ( #[ from] FromUtf8Error ) ,
95
95
96
+ /// Got negative return value. This happens if the key or index queried does not exist.
96
97
#[ error( "Negative return value. Likely due to a missing index or key. Got return value: {0}" ) ]
97
98
NegativeReturn ( i32 ) ,
98
99
}
You can’t perform that action at this time.
0 commit comments