From 097823b94e21b568cc923534c9cab5ca47888ce1 Mon Sep 17 00:00:00 2001 From: Tony Parker Date: Tue, 6 May 2025 11:20:19 -0700 Subject: [PATCH] Instead of crashing with unknown types in print, use description --- Sources/plutil/PLUContext.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/plutil/PLUContext.swift b/Sources/plutil/PLUContext.swift index 0fb7b3b0dc..46512ae438 100644 --- a/Sources/plutil/PLUContext.swift +++ b/Sources/plutil/PLUContext.swift @@ -772,7 +772,9 @@ struct PrintCommand { let description = number.description result.append("\(description)\n") } else { - throw PLUContextError.argument("Unknown property list type") + // Use a generic description + result.append(String(describing: value)) + result.append("\n") } return result }