Compare commits

..

3 Commits

Author SHA1 Message Date
Gwen Lg
89f3bd5d71 add err output when server failed to start 2024-06-14 11:42:58 +02:00
Gwen Lg
929fa56bed check if server correctly start
in same time than the port was opened.
Rename function into `wait_for_server` according.
2024-06-14 11:41:48 +02:00
Gwen Lg
d4937cb5e3 improve error management with thiserror use
- add thiserror dependency
- use distinct Error enum in lib and server
2024-06-14 11:20:20 +02:00

View File

@ -3,7 +3,8 @@ use mktemp::Temp;
use std::io::{self, Cursor, Read};
use std::process::{Child, ExitStatus, Stdio};
use thiserror::Error;
use zip::{result::ZipError, ZipArchive};
use zip::result::ZipError;
use zip::ZipArchive;
#[derive(Debug, Error)]
pub enum Error {
@ -122,7 +123,7 @@ impl Drop for EmbeddedServer {
mod utils {
use super::Error;
use std::fmt::Write;
use std::io::{BufRead, BufReader};
use std::io::{BufRead, BufReader, ErrorKind};
use std::process::Child;
use std::time::Duration;