diff --git a/bot/Douyin.mjs b/bot/Douyin.mjs index 536245c..2748136 100644 --- a/bot/Douyin.mjs +++ b/bot/Douyin.mjs @@ -37,7 +37,7 @@ class Douyin { await hero.close(); }catch(error) { - console.error('ERROR when request url via hero', url, error); + console.error("Error got when request %s via hero: %s", url, error); }; return data; diff --git a/test/cloud_test.mjs b/test/cloud_test.mjs index 2d3bef4..73c6186 100644 --- a/test/cloud_test.mjs +++ b/test/cloud_test.mjs @@ -16,6 +16,6 @@ import Hero from '@ulixee/hero'; await hero.close(); })().catch(error => { - console.log('ERROR when request url via hero', error); + console.error("Error got:\n%s", error); process.exit(1); }); diff --git a/test/douyin_test.mjs b/test/douyin_test.mjs index 61356aa..c0550f5 100644 --- a/test/douyin_test.mjs +++ b/test/douyin_test.mjs @@ -33,6 +33,6 @@ import Hero from '@ulixee/hero'; await hero.close(); })().catch(error => { - console.log('ERROR when request url via hero', error); + console.error("Error got:\n%s", error); process.exit(1); });