From fba31e94289b9e6ea6a47986217c52133688ab96 Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Sat, 1 Jan 2022 20:50:51 -0800
Subject: [PATCH] Log exception details if 'list' command fails

---
 exec/archive.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/exec/archive.js b/exec/archive.js
index 6da27bb7ab..dabfb2463f 100755
--- a/exec/archive.js
+++ b/exec/archive.js
@@ -56,7 +56,8 @@ function list(filename, verbose)
 	try {
 		 list = Archive(filename).list(Boolean(verbose));
 	} catch(e) {
-		alert(file_getname(filename) + ": Unsupported archive format");
+		log(LOG_NOTICE, filename + " " + e);
+		alert(file_getname(filename) + ": Unsupported archive");
 		return;
 	}
 
-- 
GitLab