Report .dat filename when genGraphs fails.

This should make debugging corrupt .dat file content easier.
Merge pull request #960 from thomasvandoren/report-dat-filename-when-gen-graphs-fails

Report .dat filename when genGraphs fails.

This should make debugging corrupt .dat file content easier.

r: @ronawho