code: function failWrapper(msg, mode) {
    gT.l.fail(msg);
    if (mode && mode.accName) {
      mode.accName = false; // eslint-disable-line no-param-reassign
    }
  }
docs: For shortening the code.
  Adds result accumulators usage to fail call.
  @param msg
  @param mode