refs issue #1: improve debug message, to indicate exactly this issue