]> git.proxmox.com Git - pve-installer.git/commitdiff
tui: add some info to uknown UI messages
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Jun 2023 13:18:40 +0000 (15:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Jun 2023 13:18:40 +0000 (15:18 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxmox-tui-installer/src/main.rs

index d2a5fcfed5cc23d112d76b7484219d121fc8f18c..8a3856ed60523c2028c293922f8a94b04340b12a 100644 (file)
@@ -907,7 +907,7 @@ impl FromStr for UiMessage {
                     rest.to_owned(),
                 ))
             }
-            _ => Err("invalid message type".to_owned()),
+            unknown => Err(format!("invalid message type {unknown}, rest: {rest}")),
         }
     }
 }