Merge remote-tracking branch 'origin/stable' into m43

# Conflicts:
#	.idea/dataSources.xml
This commit is contained in:
zadam
2020-05-19 23:20:32 +02:00
9 changed files with 127 additions and 97 deletions

View File

@@ -11,6 +11,14 @@ async function exportBranch(req, res) {
const {branchId, type, format, version, taskId} = req.params;
const branch = await repository.getBranch(branchId);
if (!branch) {
const message = `Cannot export branch ${branchId} since it does not exist.`;
log.error(message);
res.status(500).send(message);
return;
}
const taskContext = new TaskContext(taskId, 'export');
try {
@@ -39,4 +47,4 @@ async function exportBranch(req, res) {
module.exports = {
exportBranch
};
};