Fixing missing space in console.log on error