fix error message with new debug syntax