結果 : how to catch console error in javascript