brave-apps: better error

This commit is contained in:
Zynh Ludwig 2024-10-02 05:18:41 -07:00
parent 9dbd5b0471
commit f62d41ba62

View file

@ -71,7 +71,7 @@ in
mapAttrsToList
(n: v:
assert lib.assertMsg (length (filter (v: v != null) (attrValues v)) == 1)
"only one of `url` `urlEval` or `urlFile` may be set: ${toString n} = ${toString (attrNames v)}";
"only one of `url` `urlEval` or `urlFile` may be set: ${toString n} has multiple urls set";
(writeChromiumDesktopApp n (
if v.url != null then v.url
else if v.urlEval != null then evalString v.urlEval