convergencelabs / convergence-project

The project used for Convergence Project Management and Issue Reporting
https://convergence.io
42 stars 5 forks source link

Misspelled Error Message #186

Closed toebes closed 4 years ago

toebes commented 4 years ago

Versions

Describe the Bug When making an incorrect call to HistoricalModel::backward (https://docs.convergence.io/js-api/classes/real_time_data.historicalmodel.html#backward) and passing a value out of range, the generated error message has a misspelled word:
Error: Cannot move backawrd by 118, because that would move beyond version 0.

Step To Reproduce

  1. Find a model to open with some history in it
  2. Execute the following code
        const url = "<URL FOR SERVER>";
        Convergence.connect(url, "username", "password")
            .then((domain: ConvergenceDomain) => {
                const modelService = domain.models();
                modelService.history("<modelid>")
                    .then((model: HistoricalModel) => {
                        model.backward(model.version() + 1);
                    })
            });

Expected Behavior Error message should spell backward correctly :-)