🐛 Fix error message
This commit is contained in:
parent
59ffb39d8a
commit
34cccd0d04
2 changed files with 1 additions and 2 deletions
|
@ -16,7 +16,6 @@ export default function downloadUrlContents({ host, path, size }: {host: string,
|
||||||
const folderName = nodePath.dirname(tempFileName);
|
const folderName = nodePath.dirname(tempFileName);
|
||||||
createDirRecursively(folderName).then(() => {
|
createDirRecursively(folderName).then(() => {
|
||||||
//Check if file already exists locally
|
//Check if file already exists locally
|
||||||
console.log('Checking local cache...', tempFileName, size);
|
|
||||||
checkLocalCache(tempFileName, size).then((cacheStatus) => {
|
checkLocalCache(tempFileName, size).then((cacheStatus) => {
|
||||||
if (cacheStatus) {
|
if (cacheStatus) {
|
||||||
return resolve(tempFileName);
|
return resolve(tempFileName);
|
||||||
|
|
|
@ -32,7 +32,7 @@ export default function launchProcess(
|
||||||
|
|
||||||
spawnedProcess.stderr.setEncoding('utf8');
|
spawnedProcess.stderr.setEncoding('utf8');
|
||||||
spawnedProcess.stderr.on('data', (error) => {
|
spawnedProcess.stderr.on('data', (error) => {
|
||||||
reject(`Error in process:\n> ${processPath} ${parameters.join('v')}\nerror`);
|
reject(`Error in process:\n> ${processPath} ${parameters.join(' ')}\n${error}`);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue