Remove console.log, make (debug) error more clear