Previously we were reporting this error if we were list no symbols
which is not the same thing as the file containing no symbols.
Also, always report the filename when printing errors.
This matches the GNU nm behaviour.
This a followup to https://reviews.llvm.org/D52810
It migth make more sense to merge this and the existing test into a single test, with multiple YAML documents, since it's only a minor variation.