mirror of
https://github.com/catdevnull/preciazo.git
synced 2025-02-22 21:26:26 +00:00
print stderr
This commit is contained in:
parent
67623acb31
commit
71eeaef547
1 changed files with 5 additions and 1 deletions
|
@ -49,7 +49,11 @@ async function getRawDatasetInfo(attempts = 0) {
|
|||
return await $`curl ${CURL_PROXY_ARG} -L ${url}`.json();
|
||||
} catch (error) {
|
||||
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);
|
||||
}
|
||||
console.error(
|
||||
|
|
Loading…
Reference in a new issue