discard invalid stream output

If a stream output is missing text,
log an error and discard the broken message
so it doesn't get into the notebook.
Min RK 11 years ago
parent 75678cc532
commit 5f08e50830

@ -465,6 +465,10 @@ define([
OutputArea.prototype.append_stream = function (json) {
var text = json.text;
if (typeof text !== 'string') {
console.error("Stream output is invalid (missing text)", json);
return false;
}
var subclass = "output_"+json.name;
if (this.outputs.length > 0){
// have at least one output to consider

Loading…
Cancel
Save