Commit 1140c5c 1 parent a9c8dc8 commit 1140c5c Copy full SHA for 1140c5c
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -130,11 +130,11 @@ impl<'a> InternalEvent for HttpDecompressError<'a> {
130
130
}
131
131
}
132
132
133
- pub struct HttpInternalError {
134
- pub message : & ' static str ,
133
+ pub struct HttpInternalError < ' a > {
134
+ pub message : & ' a str ,
135
135
}
136
136
137
- impl InternalEvent for HttpInternalError {
137
+ impl < ' a > InternalEvent for HttpInternalError < ' a > {
138
138
fn emit ( self ) {
139
139
error ! (
140
140
message = %self . message,
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ pub trait HttpSource: Clone + Send + Sync + 'static {
165
165
} else {
166
166
//other internal error - will return 500 internal server error
167
167
emit ! ( HttpInternalError {
168
- message: "Internal error."
168
+ message: & format! ( "Internal error: {:?}" , r )
169
169
} ) ;
170
170
Err ( r)
171
171
}
You can’t perform that action at this time.
0 commit comments