message: tests if errors is an array in dialogError
diff: @@ -625,9 +625,14 @@ module.exports = function(botkit, config) {
  };
  bot.dialogError = function(errors) {
  - if (typeof(errors) === 'object') {
  + if (!errors) {
  + errors = [];
  + }
  +
  + if (Object.prototype.toString.call(errors) !== '[object Array]') {
  errors = [errors];
  }
  +
  bot.res.json({
  errors: errors
  });
  