"use strict";

/**
 * This class will hold API keys etc. when it gets smarter
 */
class StackOverflowSearcher {
  getUrlForRelevantAnswer(errorMessage) {
    return `http://stackoverflow.com/search?q=${errorMessage}`;
  }
}

module.exports = StackOverflowSearcher;

"use strict";

/**
 * This class will hold API keys etc. when it gets smarter
 */
class StackOverflowSearcher {
  getUrlForRelevantAnswer(errorMessage) {
    return encodeURI(`http://stackoverflow.com/search?q=${errorMessage}`);
  }
}

module.exports = StackOverflowSearcher;

Change StackOverflow url so that it is URI encoded
Change StackOverflow url so that it is URI encoded
