From 96e6f1a418702870bfeb3e80ce62b9158fce0084 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Wed, 1 May 2024 00:02:45 +0200 Subject: [PATCH] lib/gvariant: Fix error message for unsupported primitives Without this, passing an integer to a setting will fail with a confusing error: error: cannot coerce an integer to a string --- lib/gvariant.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gvariant.nix b/lib/gvariant.nix index 708213224d3e..222267f60d8e 100644 --- a/lib/gvariant.nix +++ b/lib/gvariant.nix @@ -71,7 +71,7 @@ rec { else if isGVariant v then v else - throw "The GVariant type of ${v} can't be inferred."; + throw "The GVariant type of “${builtins.typeOf v}” can't be inferred."; /* Returns the GVariant array from the given type of the elements and a Nix list.