mirror of
https://github.com/catdevnull/transicion-desordenada-diablo
synced 2024-11-15 02:21:39 +00:00
arreglar reporte de errores
This commit is contained in:
parent
0abf383d9e
commit
e743b42840
1 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,7 @@ async function downloadFromData(jsonUrlString) {
|
||||||
try {
|
try {
|
||||||
await downloadDistWithRetries(job);
|
await downloadDistWithRetries(job);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
await errorFile.write(JSON.stringify(job, encodeError(error)) + "\n");
|
errorFile.write(JSON.stringify(encodeError(job, error)) + "\n");
|
||||||
nErrors++;
|
nErrors++;
|
||||||
} finally {
|
} finally {
|
||||||
nFinished++;
|
nFinished++;
|
||||||
|
@ -265,7 +265,7 @@ function wait(ms) {
|
||||||
*/
|
*/
|
||||||
function encodeError(job, error) {
|
function encodeError(job, error) {
|
||||||
const always = {
|
const always = {
|
||||||
url: job.url?.toString || job.dist.downloadURL,
|
url: job.url?.toString() || job.dist.downloadURL,
|
||||||
datasetIdentifier: job.dataset.identifier,
|
datasetIdentifier: job.dataset.identifier,
|
||||||
distributionIdentifier: job.dist.identifier,
|
distributionIdentifier: job.dist.identifier,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue