"use strict";

var sphero = require("../");
var orb = sphero(process.env.PORT);

orb.connect().then(function() {
  return orb.color({ red: 255, green: 0, blue: 255 });
}).then(function() {
  return orb.getBluetoothInfo();
}).then(function(data) {
  console.log("bluetoothInfo:");
  console.log("  name:", data.name);
  console.log("  btAddress:", data.btAddress);
  console.log("  separator:", data.separator);
  console.log("  colors:", data.colors);
});

@@ -129,41 +129,16 @@
 lor(
-%7B red: 255, green: 0, blue: 255 %7D
+%22FF00FF%22
 );%0A%7D
@@ -420,12 +420,67 @@
 olors);%0A
+%7D).catch(function(err) %7B%0A  console.error(%22err:%22, err);%0A
 %7D);%0A

Add catch to promise bluetooth info example