Silvan Mosberger d5700d626c
lib/modules: Fix nonexistant option error
The refactoring in fd75dc8765
introduced a mistake in the error message that doesn't show the full
context anymore. E.g. with this module:

  options.foo.bar = lib.mkOption {
    type = lib.types.submodule {
      baz = 10;
    };
    default = {};
  };

You'd get the error

  The option `baz' defined in `/home/infinisil/src/nixpkgs/config.nix' does not exist.

instead of the previous

  The option `foo.bar.baz' defined in `/home/infinisil/src/nixpkgs/config.nix' does not exist.

This commit undoes this regression
2020-08-18 00:12:36 +02:00
..
2020-06-18 10:16:57 +02:00
2017-09-16 21:36:43 -04:00
2017-09-16 21:36:43 -04:00
2019-04-17 15:55:57 +01:00
2020-08-03 14:39:36 -07:00
2020-05-08 08:31:27 -04:00
2018-11-22 08:59:48 +00:00
2020-06-04 13:43:10 +02:00
2020-07-25 21:43:09 +02:00
2019-09-26 17:42:42 +02:00