From afb4dd8ff31c231bfcc68f6a444e26d738d4bc94 Mon Sep 17 00:00:00 2001 From: Neshura Date: Mon, 30 Sep 2024 11:39:43 +0200 Subject: [PATCH] Include interface name when malformed IP is detected --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 3d5a8ea..c479031 100644 --- a/src/config.rs +++ b/src/config.rs @@ -37,7 +37,7 @@ impl InterfaceConfig { let interface_address = match self.interfaces.get(interface_name) { Some(address) => *address, None => { - let err_msg = "Malformed IP in interfaces.toml"; + let err_msg = format!("Malformed or missing IP in interfaces.toml for interface {}", interface_name); match connected_to_journal() { true => error!("[ERROR] {err_msg}"), false => eprintln!("[ERROR] {err_msg}"),