prettyException function
Implementation
String prettyException(String prefix, dynamic e) {
if (e is FlutterBluePlusException) {
return "$prefix ${e.description}";
} else if (e is PlatformException) {
return "$prefix ${e.message}";
}
return prefix + e.toString();
}