File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ impl<S: serde::Serializer> SerdeSerializer<S> {
5656 /// Start serializing map of values
5757 fn start ( ser : S , len : Option < usize > ) -> result:: Result < Self , slog:: Error > {
5858 let ser_map = try!( ser. serialize_map ( len)
59- . map_err ( |_ | {
59+ . map_err ( |e | {
6060 io:: Error :: new ( io:: ErrorKind :: Other ,
61- "serde serialization error" )
61+ format ! ( "serde serialization error: {}" , e ) )
6262 } ) ) ;
6363 Ok ( SerdeSerializer { ser_map : ser_map } )
6464 }
@@ -73,7 +73,7 @@ macro_rules! impl_m(
7373 ( $s: expr, $key: expr, $val: expr) => ( {
7474 let k_s: & str = $key. as_ref( ) ;
7575 try!( $s. ser_map. serialize_entry( k_s, $val)
76- . map_err( |_ | io:: Error :: new( io:: ErrorKind :: Other , "serde serialization error" ) ) ) ;
76+ . map_err( |e | io:: Error :: new( io:: ErrorKind :: Other , format! ( "serde serialization error: {}" , e ) ) ) ) ;
7777 Ok ( ( ) )
7878 } ) ;
7979) ;
You can’t perform that action at this time.
0 commit comments