mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
update-scripts: Add more verbose errors for rust-analyzer
This commit is contained in:
parent
e4484133d6
commit
8e9458eacf
1 changed files with 80 additions and 74 deletions
|
@ -37,7 +37,9 @@ let
|
||||||
) options;
|
) options;
|
||||||
|
|
||||||
mkRustAnalyzerOptionType =
|
mkRustAnalyzerOptionType =
|
||||||
nullable: property_name:
|
nullable: property_name: property:
|
||||||
|
let
|
||||||
|
inner =
|
||||||
{
|
{
|
||||||
type,
|
type,
|
||||||
enum ? null,
|
enum ? null,
|
||||||
|
@ -116,6 +118,10 @@ let
|
||||||
{ kind = type; }
|
{ kind = type; }
|
||||||
else
|
else
|
||||||
throw "Unhandled value in ${property_name}: ${lib.generators.toPretty { } property}";
|
throw "Unhandled value in ${property_name}: ${lib.generators.toPretty { } property}";
|
||||||
|
in
|
||||||
|
builtins.addErrorContext "While creating type for ${property_name}:\n${lib.generators.toPretty { } property}" (
|
||||||
|
inner property
|
||||||
|
);
|
||||||
|
|
||||||
mkRustAnalyzerOption =
|
mkRustAnalyzerOption =
|
||||||
property_name:
|
property_name:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue