print stderr

This commit is contained in:
Cat /dev/Nulo 2025-01-28 15:40:37 -03:00
parent 67623acb31
commit 71eeaef547

View file

@ -49,7 +49,11 @@ async function getRawDatasetInfo(attempts = 0) {
return await $`curl ${CURL_PROXY_ARG} -L ${url}`.json(); return await $`curl ${CURL_PROXY_ARG} -L ${url}`.json();
} catch (error) { } catch (error) {
if (attempts >= 4) { if (attempts >= 4) {
console.error(`❌ Error fetching dataset info`, error); console.error(
`❌ Error fetching dataset info`,
error,
(error as { stderr: { toString: () => string } }).stderr.toString()
);
process.exit(1); process.exit(1);
} }
console.error( console.error(