Only print errors when debugMode is enabled