Uploaded image for project: 'ClojureScript'
  1. CLJS-1771

Add helper for converting ex-info to js/Error

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects versions: 1.9.76
    • Fix versions: None
    • Labels:

      Description

      ex-info/ex-data/ex-message didn't get a lot of attention in CLJS community, still I find quiet often (js/Error. "Err"). I guess the main reason is that we cannot pass ex-info object back to JS world, clj->js doesn't work in this case. We can solve it by adding helper like ex->js which will convert ex-info backward to js/Error.

      What do you think about such enhancement? I can add patch later if you would find it useful

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              artemyarulin Artem Yarulin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: