forked from engineering/cloudservices
another fix attempt on eval
parent
5ce5b7f64d
commit
c177fb88ee
|
@ -25,6 +25,9 @@ export default class Eval extends Command {
|
||||||
if (typeof evaled === 'object') {
|
if (typeof evaled === 'object') {
|
||||||
evaled = inspect(evaled, { depth: 0 });
|
evaled = inspect(evaled, { depth: 0 });
|
||||||
}
|
}
|
||||||
|
if (evaled === undefined) {
|
||||||
|
evaled = 'undefined';
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
evaled = error.stack;
|
evaled = error.stack;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue