From d6e3e3927325f991ce18545fff4918b16b44d52d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Czapli=C5=84ski?= Date: Wed, 15 Dec 2021 15:49:04 +0100 Subject: [PATCH] DEBUG try to see when error preprocessor is run --- .../src/builtin/visualization/native/error.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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";