diff --git a/Cargo.toml b/Cargo.toml index 3822acd..040f51c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "board_server" -version = "1.0.0" +version = "1.0.1" edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/html/boards.rs b/src/html/boards.rs index b30617f..879d2f3 100644 --- a/src/html/boards.rs +++ b/src/html/boards.rs @@ -146,7 +146,7 @@ pub async fn board_post( Ok(a) => a, Err(e) => { println!("{}", e); - return Err(HttpResponse::BadRequest().body("Bad Request: Could not parse cookie data")); + return Err(HttpResponse::BadRequest().body("Bad Request: Could not parse cookie data.\n Not logged in, or bad cookie.")); } }; let mut mf = data.msg_factory.lock().unwrap(); diff --git a/src/main.rs b/src/main.rs index 680fad3..0b0a644 100644 --- a/src/main.rs +++ b/src/main.rs @@ -59,12 +59,12 @@ impl PageBuilder { #[get("/")] async fn index() -> impl Responder { - HttpResponse::Ok().body(r#" + HttpResponse::Ok().body(format!(r#"
-