better error report without console.log