rework error messages

This commit is contained in:
2024-05-03 22:29:25 +02:00
parent 7eec34ce00
commit cb0921144d
13 changed files with 460 additions and 383 deletions

View File

@@ -1,4 +1,4 @@
use mpvipc::{Error as MpvError, Mpv, MpvExt};
use mpvipc::{MpvError, Mpv, MpvExt};
#[tokio::main]
async fn main() -> Result<(), MpvError> {

View File

@@ -1,4 +1,4 @@
use mpvipc::{Error, Mpv, MpvExt};
use mpvipc::{MpvError, Mpv, MpvExt};
fn seconds_to_hms(total: f64) -> String {
let total = total as u64;
@@ -10,7 +10,7 @@ fn seconds_to_hms(total: f64) -> String {
}
#[tokio::main]
async fn main() -> Result<(), Error> {
async fn main() -> Result<(), MpvError> {
env_logger::init();
let mpv = Mpv::connect("/tmp/mpv.sock").await?;