saltstack/salt — pull request #11470 by kiorky (2014-03-24 08:07:33+00:00)
Title: salt.state: fix an edge case of inclusion for error reporting

/cc @thatch45

There is an edge case on the fix we provide last week for the error reporting.

If in a sls, we include another (missing) sls which is under the same prefix, the error will be misleading replacing the missing sls by the loaded one.
The error is good in the first place but point to the wrong sls.

An exemple will be more meaningful
```
foo/a.sls
include:
- foo.b
```

if foo.b is absent, and without this PR, it will report that foo.a is missing :)