update error msgs with debug