Add a debug message where the error seems to be