mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 17:31:36 -06:00
Added return instead of console
This commit is contained in:
parent
2e90b8f67e
commit
15ba93bb57
@ -175,12 +175,11 @@ class Search {
|
||||
try {
|
||||
data = JSON.parse(result);
|
||||
if (data.status === 'OK') {
|
||||
console.log('Successful')
|
||||
} else {
|
||||
console.log("Failed to validate index data folder");
|
||||
return data;
|
||||
}
|
||||
return new Error('Unable validate index folder')
|
||||
} catch (err) {
|
||||
throw err;
|
||||
throw (err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user