bahaghari/lib: update error message to be more consistent with nixpkgs

This commit is contained in:
Gabriel Arazas 2024-06-11 16:39:09 +08:00
parent 0554da898a
commit 17c36bf29c
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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;