Error when loading YAML config file should show the file which failed

Just spent ages trying to figure out what was wrong with my .gemrc, turns out it was fine and my .gem/credentials file was at fault but the error was incorrectly mentioning .gemrc