nix flake check: Warn about unknown flake outputs

This commit is contained in:
Eelco Dolstra 2019-06-17 18:05:32 +02:00
parent 9d1207c02c
commit f2fcc163fa
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -365,6 +365,9 @@ struct CmdFlakeCheck : FlakeCommand, MixJSON
else if (name == "defaultApp") else if (name == "defaultApp")
checkApp(name, vProvide); checkApp(name, vProvide);
else
warn("unknown flake output '%s'", name);
} catch (Error & e) { } catch (Error & e) {
e.addPrefix(fmt("while checking flake output '" ANSI_BOLD "%s" ANSI_NORMAL "':\n", name)); e.addPrefix(fmt("while checking flake output '" ANSI_BOLD "%s" ANSI_NORMAL "':\n", name));
throw; throw;