From 17c36bf29caa20c3275acae98bc44271ae030e3e Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Tue, 11 Jun 2024 16:39:09 +0800 Subject: [PATCH] bahaghari/lib: update error message to be more consistent with nixpkgs --- subprojects/bahaghari/lib/math.nix | 2 +- subprojects/bahaghari/lib/tinted-theming.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/bahaghari/lib/math.nix b/subprojects/bahaghari/lib/math.nix index 461d40fc..63184775 100644 --- a/subprojects/bahaghari/lib/math.nix +++ b/subprojects/bahaghari/lib/math.nix @@ -120,7 +120,7 @@ rec { */ factorial = x: assert lib.assertMsg (x >= 0) - "bahaghariLib.math.factorial: given value is not a positive integer"; + "bahaghariLib.math.factorial: Given value is not a positive integer"; product (lib.range 1 x); /* Returns a boolean whether the given number is within the given (inclusive) range. diff --git a/subprojects/bahaghari/lib/tinted-theming.nix b/subprojects/bahaghari/lib/tinted-theming.nix index 39e29dcd..df00e07e 100644 --- a/subprojects/bahaghari/lib/tinted-theming.nix +++ b/subprojects/bahaghari/lib/tinted-theming.nix @@ -44,7 +44,7 @@ rec { scheme = self.importYAML yamlpath; in assert lib.assertMsg (isValidScheme scheme || isLegacyScheme scheme) - "bahaghariLib.tinted-theming.importScheme: given data is not a valid Tinted Theming scheme"; + "bahaghariLib.tinted-theming.importScheme: Given data is not a valid Tinted Theming scheme"; if isLegacyScheme scheme then modernizeLegacyScheme scheme else scheme;