Skip to content

Commit

Permalink
DEBUG try to see when error preprocessor is run
Browse files Browse the repository at this point in the history
  • Loading branch information
akavel committed Dec 15, 2021
1 parent a5c282f commit d6e3e39
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit d6e3e39

Please sign in to comment.