🐛 Fix error message

This commit is contained in:
C-3PO 2018-09-14 04:52:50 +02:00
parent 59ffb39d8a
commit 34cccd0d04
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
2 changed files with 1 additions and 2 deletions

View file

@ -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);

View file

@ -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}`);
}); });
}); });
} }