a small optimization of wsf
implements console.error correctly and modify error tips