Skip to content
Snippets Groups Projects
Commit a373c14a authored by Nick Anton Christoph Kleine-Tebbe's avatar Nick Anton Christoph Kleine-Tebbe
Browse files

added missing returns and message logs

parent 00520aa6
Branches
No related tags found
No related merge requests found
...@@ -427,20 +427,41 @@ router.use('/submitAbgabe', (req, res) => { ...@@ -427,20 +427,41 @@ router.use('/submitAbgabe', (req, res) => {
function (error, stdout, stderr) { function (error, stdout, stderr) {
if (!isEmpty(stderr)){ if (!isEmpty(stderr)){
console.log('stderr: ' + stderr); console.log('stderr: ' + stderr);
return res.json({
success: false,
message: stderr
})
} }
if (error !== null) { if (error !== null) {
console.log('exec error: ' + error); console.log('exec error: ' + error);
return res.json({
success: false,
message: error
})
} }
console.log('Imported Datasmithfile successfully');
// Run the automation script that packages the mod // Run the automation script that packages the mod
exec(runUAT + ' PackageUGC -Project=' + kolloquiumVRuproject + ' -PluginPath=' + modDirectory +'/' + mod_folder_name + '/' + mod_folder_name + '.uplugin -basedonreleaseversion=KolloquiumVR_v1 -StagingDirectory=' + resolve(path.join(kolloquiumDirectory, safeKolloquium, 'Mods')) + ' -nocompile', exec(runUAT + ' PackageUGC -Project=' + kolloquiumVRuproject + ' -PluginPath=' + modDirectory +'/' + mod_folder_name + '/' + mod_folder_name + '.uplugin -basedonreleaseversion=KolloquiumVR_v1 -StagingDirectory=' + resolve(path.join(kolloquiumDirectory, safeKolloquium, 'Mods')) + ' -nocompile',
function (error, stdout, stderr) { function (error, stdout, stderr) {
if (!isEmpty(stderr)){ if (!isEmpty(stderr)){
console.log('stderr: ' + stderr); console.log('stderr: ' + stderr);
return res.json({
success: false,
message: stderr
})
} }
if (error !== null) { if (error !== null) {
console.log('exec error: ' + error); console.log('exec error: ' + error);
return res.json({
success: false,
message: error
})
} }
console.log('Packaged UGC successfully');
return res.json({
success: true,
message: 'Packaged UGC successfully'
});
}); });
}); });
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment