From ba90d5d283232b0091c2f822972fe7aa62cae669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20St=C3=B6ckl?= Date: Thu, 1 Aug 2024 12:14:38 +0200 Subject: [PATCH] Emit warnings on pgt file being to big --- src/info.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/info.rs b/src/info.rs index a3d8c7a..3e57efc 100644 --- a/src/info.rs +++ b/src/info.rs @@ -62,6 +62,10 @@ pub fn set(title: Option, card_type: Option, card_id: Option if len > 0 { eprintln!("warning: provided pgt file is bigger than expected and will be truncated") } + Err(e) => eprintln!("warning: unable to check if pgt file is too long: {}", e) + } } let pcd: PCD = (&pcd.serialize()).try_into()?;