Skip to content
Snippets Groups Projects
Commit 84785a28 authored by Sebastian Mihalache's avatar Sebastian Mihalache :hammer_pick:
Browse files

fix(mts): throw error when file not found

parent 29dc927d
No related branches found
No related tags found
3 merge requests!196S25 - EiC submit revision,!189S25,!177Hin 230 eic request revision
......@@ -38,17 +38,21 @@ module.exports = {
fragment,
xmlFile,
isEQA,
}).then(() => {
const packageName = get(xmlFile, 'name', '').replace('.xml', '')
const filename = isEQA
? `ACCEPTED_${packageName}.${fragment.version}.zip`
: `${packageName}.zip`
})
.then(() => {
const packageName = get(xmlFile, 'name', '').replace('.xml', '')
const filename = isEQA
? `ACCEPTED_${packageName}.${fragment.version}.zip`
: `${packageName}.zip`
return PackageManager.uploadFiles({
filename,
s3Config,
config: ftpConfig,
return PackageManager.uploadFiles({
filename,
s3Config,
config: ftpConfig,
})
})
.catch(e => {
throw new Error(e)
})
})
},
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment