more verbose error
This commit is contained in:
parent
17a701fb9e
commit
9aaf9f41ad
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -2256,7 +2256,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tesla-charge-controller"
|
name = "tesla-charge-controller"
|
||||||
version = "0.1.21"
|
version = "0.1.22"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-channel",
|
"async-channel",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "tesla-charge-controller"
|
name = "tesla-charge-controller"
|
||||||
version = "0.1.21"
|
version = "0.1.22"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MITNFA"
|
license = "MITNFA"
|
||||||
description = "Controls Tesla charge rate based on solar charge data"
|
description = "Controls Tesla charge rate based on solar charge data"
|
||||||
|
|
|
@ -191,11 +191,11 @@ impl TeslaInterface {
|
||||||
RequestError::StdIo(e) => log::error!("Stdio error: {e:?}"),
|
RequestError::StdIo(e) => log::error!("Stdio error: {e:?}"),
|
||||||
RequestError::RonSpanned(e) => log::error!("RON parsing error: {e:?}"),
|
RequestError::RonSpanned(e) => log::error!("RON parsing error: {e:?}"),
|
||||||
RequestError::Teslatte(teslatte::error::TeslatteError::DecodeJsonError {
|
RequestError::Teslatte(teslatte::error::TeslatteError::DecodeJsonError {
|
||||||
source: _,
|
source,
|
||||||
request: _,
|
request: _,
|
||||||
body,
|
body,
|
||||||
}) => {
|
}) => {
|
||||||
log::error!("Error getting state: {body}")
|
log::error!("Error {source} getting state: {body}")
|
||||||
}
|
}
|
||||||
RequestError::Teslatte(e) => log::error!("Teslatte error: {e:?}"),
|
RequestError::Teslatte(e) => log::error!("Teslatte error: {e:?}"),
|
||||||
RequestError::Save(e) => log::error!("Save error: {e:?}"),
|
RequestError::Save(e) => log::error!("Save error: {e:?}"),
|
||||||
|
|
Loading…
Reference in a new issue