cow parse fail return

This commit is contained in:
qaiu
2023-06-21 02:50:19 +00:00
parent 028b75cfd4
commit 3375144af6
3 changed files with 6 additions and 1 deletions

View File

@@ -44,10 +44,12 @@ public class CowTool implements IPanTool {
}
} else {
log.error("cow parse fail: {}; json: {}", url2, res2Json);
promise.fail("cow parse fail: " + url2 + "; json:" + res2Json);
}
});
} else {
log.error("cow parse fail: {}; json: {}", key, resJson);
promise.fail("cow parse fail: " + key + "; json:" + resJson);
}
});
return promise.future();