Fix error handling in the command
This commit is contained in:
parent
e304c37012
commit
0dfaa5d00d
|
@ -137,10 +137,13 @@ function done() {
|
||||||
|
|
||||||
// Store the data into the recording file
|
// Store the data into the recording file
|
||||||
try {
|
try {
|
||||||
|
|
||||||
di.fs.writeFileSync(recordingFile, outputYAML, 'utf8');
|
di.fs.writeFileSync(recordingFile, outputYAML, 'utf8');
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
di.errorHandler(error.message);
|
|
||||||
process.exit();
|
return di.errorHandler(error);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(di.chalk.green('Successfully Recorded'));
|
console.log(di.chalk.green('Successfully Recorded'));
|
||||||
|
|
Loading…
Reference in New Issue