CRM-13552 display better errors from {crmAPI}

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.0
    • Fix Version/s: 4.5
    • Component/s: None
    • Labels:
      None

      Attachments

        Activity

        [CRM-13552] display better errors from {crmAPI}
        xavier dutoit added a comment -

        https://github.com/civicrm/civicrm-core/pull/1756

        Use case: write a code that doesn't check return value is_error; like humans do. To make it extra fun, do it with

        <script>
        var data=

        {crmAPI ...}

        ; // returns a json

        d3.selectAll()... // do plenty of magic that assumes data.values exist, get no graph and a not so visible js error.

        I expect quite a few devs will want to pick up ladies with their awesome data visualisations dashboard. We can't let them down. At least they can blame the api now without having to view the page source.

        xavier dutoit added a comment -

        merged

          People

          • Assignee:
            xavier dutoit
            Reporter:
            xavier dutoit

            Dates

            • Created:
              Updated:
              Resolved: