mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-12 06:19:00 +00:00
bahaghari/lib: update error message to be more consistent with nixpkgs
This commit is contained in:
parent
0554da898a
commit
17c36bf29c
@ -120,7 +120,7 @@ rec {
|
|||||||
*/
|
*/
|
||||||
factorial = x:
|
factorial = x:
|
||||||
assert lib.assertMsg (x >= 0)
|
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);
|
product (lib.range 1 x);
|
||||||
|
|
||||||
/* Returns a boolean whether the given number is within the given (inclusive) range.
|
/* Returns a boolean whether the given number is within the given (inclusive) range.
|
||||||
|
@ -44,7 +44,7 @@ rec {
|
|||||||
scheme = self.importYAML yamlpath;
|
scheme = self.importYAML yamlpath;
|
||||||
in
|
in
|
||||||
assert lib.assertMsg (isValidScheme scheme || isLegacyScheme scheme)
|
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
|
if isLegacyScheme scheme
|
||||||
then modernizeLegacyScheme scheme
|
then modernizeLegacyScheme scheme
|
||||||
else scheme;
|
else scheme;
|
||||||
|
Loading…
Reference in New Issue
Block a user