結果 : how to return error message in javascript