mirror of
https://github.com/jwetzell/aas-js.git
synced 2026-09-05 20:29:08 +00:00
only write output if sport is initialized
This commit is contained in:
@@ -70,7 +70,7 @@ port.on('data', (data) => {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('app: error updating console state');
|
console.error('app: error updating console state');
|
||||||
}
|
}
|
||||||
if (options.output) {
|
if (options.output && aasConsole.sportInitialized) {
|
||||||
try {
|
try {
|
||||||
if (options.format === 'json') {
|
if (options.format === 'json') {
|
||||||
writeFileSync(options.output, JSON.stringify(aasConsole, null, 2));
|
writeFileSync(options.output, JSON.stringify(aasConsole, null, 2));
|
||||||
|
|||||||
Reference in New Issue
Block a user