mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-17 05:15:14 +00:00
reqwest: Don't use deprecated Error::description() anymore
This commit is contained in:
parent
5dd80e0706
commit
09f332f31f
1 changed files with 3 additions and 7 deletions
|
@ -206,10 +206,9 @@ impl Harness {
|
|||
return state.get_current();
|
||||
}
|
||||
MessageView::Error(err) => {
|
||||
use std::error::Error;
|
||||
panic!(
|
||||
"Got error: {} ({})",
|
||||
err.get_error().description(),
|
||||
err.get_error(),
|
||||
err.get_debug().unwrap_or_else(|| String::from("None"))
|
||||
);
|
||||
}
|
||||
|
@ -251,10 +250,9 @@ impl Harness {
|
|||
|
||||
match msg.view() {
|
||||
MessageView::Error(err) => {
|
||||
use std::error::Error;
|
||||
panic!(
|
||||
"Got error: {} ({})",
|
||||
err.get_error().description(),
|
||||
err.get_error(),
|
||||
err.get_debug().unwrap_or_else(|| String::from("None"))
|
||||
);
|
||||
}
|
||||
|
@ -292,11 +290,9 @@ impl Harness {
|
|||
|
||||
match msg.view() {
|
||||
MessageView::Error(err) => {
|
||||
use std::error::Error;
|
||||
|
||||
panic!(
|
||||
"Got error: {} ({})",
|
||||
err.get_error().description(),
|
||||
err.get_error(),
|
||||
err.get_debug().unwrap_or_else(|| String::from("None"))
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue