This commit is contained in:
naskya 2024-06-21 03:23:37 +09:00
parent fce417214d
commit df3a9acbfb
Signed by: naskya
GPG key ID: 712D413B3A9FED5C
2 changed files with 6 additions and 3 deletions

View file

@ -51,7 +51,7 @@ pub(super) fn run() -> Result<(), ValidationError> {
cprintln!("<bold>Note:</> This is only a formal validation, so this does not guarantee that the settings are appropriate.");
}
server_validation_result.and_then(|_| client_validation_result)
server_validation_result.and(client_validation_result)
}
fn read_server_toml() -> Result<server::Config, ReadError> {

View file

@ -3,6 +3,7 @@ mod config;
use clap::{Parser, Subcommand};
use color_print::cprintln;
use std::process::ExitCode;
/// latest Firefish version as of this fishctl release
const FIREFISH_VERSION: &str = "20240613";
@ -34,7 +35,7 @@ async fn run() -> Result<(), command::Error> {
}
#[tokio::main]
async fn main() {
async fn main() -> ExitCode {
let res = run().await;
if let Err(err) = res {
@ -49,6 +50,8 @@ async fn main() {
err = src;
}
std::process::exit(1);
return ExitCode::FAILURE;
}
ExitCode::SUCCESS
}