diff --git a/app/gui/view/graph-editor/src/builtin/visualization/native/error.rs b/app/gui/view/graph-editor/src/builtin/visualization/native/error.rs index c5c98ebd586f..c4878b3692d0 100644 --- a/app/gui/view/graph-editor/src/builtin/visualization/native/error.rs +++ b/app/gui/view/graph-editor/src/builtin/visualization/native/error.rs @@ -31,12 +31,14 @@ const PADDING_TEXT: f32 = 10.0; /// [here](http://dev.enso.org/docs/ide/product/visualizations.html). pub const PREPROCESSOR_CODE: &str = r#" x -> - result = Builtins.Ref.new '{ message: ""}' + result = Builtins.Ref.new '{ "kind": "Dataflow", "message": "Hello!"}' + Builtins.Ref.get result +"#; +/* x.catch err-> message = err.to_display_text Builtins.Ref.put result ('{ "kind": "Dataflow", "message": ' + message.to_json.to_text + '}') - Builtins.Ref.get result -"#; + */ /// The context module for the `PREPROCESSOR_CODE`. See there. pub const PREPROCESSOR_MODULE: &str = "Standard.Base.Main";