convertError function
Implementation
String convertError(Object e) {
if (e is String) {
return e;
} else if (e is ProgressEvent) {
final t = e.target;
if (t is HttpRequest) {
return t.response;
}
return t.toString();
} else {
return e.toString();
}
}