Make config error messages more awesome.

Refs #5825
Build fix.