cow parse fail return

This commit is contained in:
qaiu
2023-06-21 02:50:19 +00:00
parent 29a993e1fc
commit 40eea9b5f4
3 changed files with 6 additions and 1 deletions

3
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"java.compile.nullAnalysis.mode": "automatic"
}

View File

@@ -10,7 +10,7 @@ import io.vertx.core.json.JsonObject;
* 程序入口
* <br>Create date 2021-05-08 13:00:01
*
* @author qiu
* @author qaiu
*/
public class AppMain {

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();