dequelabs / axe-core-npm

Mozilla Public License 2.0
594 stars 68 forks source link

Make error-handling url configurable #382

Open straker opened 2 years ago

straker commented 2 years ago

In order to get axe-core-npm 4.3.3 released on time, we opted for a less-than-ideal strategy to hard-code the error-handling url in each package. If instead we allowed the url to be configurable, it would make for a cleaner integration.


this.errorUrl = 'https://github.com/dequelabs/axe-core-npm/blob/develop/packages/webdriverjs/error-handling.md';

analyze() {
  try {

  } catch(err) {
    throw new Error(`${err.message}. Please see ${this.errorUrl}`)
  }
}
``
somaalapati commented 1 year ago

@michael-siek @Zidious Can you please provide some QA notes to test this ticket?

michael-siek commented 1 year ago

@somaalapati This is a dev task I don't think there is anything to QA