Skip to content
Snippets Groups Projects
Commit 01a199d3 authored by Viktor Vorobev's avatar Viktor Vorobev Committed by Sandro Weber
Browse files

Merged in NRRPLT-8904 (pull request #3)

[NRRPLT-8904] Move config aquisition to try/catch block

* [NRRPLT-8904] Move config aquisition to try/catch block


Approved-by: Sandro Weber
parent 228008f5
No related branches found
No related tags found
No related merge requests found
...@@ -79,11 +79,11 @@ abstract class BaseExperimentService { ...@@ -79,11 +79,11 @@ abstract class BaseExperimentService {
constructor(protected experimentId, protected contextId, protected config) {} constructor(protected experimentId, protected contextId, protected config) {}
async getSimConfigV4() { async getSimConfigV4() {
const configFile = await this.getFile(
storageConsts.defaultConfigName,
V4_FILE_TYPE.JSON
);
try { try {
const configFile = await this.getFile(
storageConsts.defaultConfigName,
V4_FILE_TYPE.JSON
);
const config = JSON.parse(configFile.toString()); const config = JSON.parse(configFile.toString());
if (config.cloneDate) { if (config.cloneDate) {
config.cloneDate = config.cloneDate.replace(/T/, ' '); config.cloneDate = config.cloneDate.replace(/T/, ' ');
......
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