結果 : how to return error in javascript