correctly report error when fail to parse config