more legible error message in config.get/set

Test added by @isaacs
Closes #4458