Browse Source

error log update

master
filesite 1 year ago
parent
commit
03bc33976a
  1. 2
      bot/Douyin.mjs
  2. 2
      test/cloud_test.mjs
  3. 2
      test/douyin_test.mjs

2
bot/Douyin.mjs

@ -37,7 +37,7 @@ class Douyin {
await hero.close(); await hero.close();
}catch(error) { }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; return data;

2
test/cloud_test.mjs

@ -16,6 +16,6 @@ import Hero from '@ulixee/hero';
await hero.close(); await hero.close();
})().catch(error => { })().catch(error => {
console.log('ERROR when request url via hero', error); console.error("Error got:\n%s", error);
process.exit(1); process.exit(1);
}); });

2
test/douyin_test.mjs

@ -33,6 +33,6 @@ import Hero from '@ulixee/hero';
await hero.close(); await hero.close();
})().catch(error => { })().catch(error => {
console.log('ERROR when request url via hero', error); console.error("Error got:\n%s", error);
process.exit(1); process.exit(1);
}); });

Loading…
Cancel
Save