surface error

fixes #11931
This commit is contained in:
Joao Moreno
2016-09-13 15:23:01 +02:00
parent 30144b5dea
commit 70ab16cc10

View File

@@ -100,9 +100,11 @@ class Main {
const response = JSON.parse(err.responseText);
return TPromise.wrapError(response.message);
} catch (e) {
return TPromise.wrapError(err);
// noop
}
}
return TPromise.wrapError(err);
})
.then(result => {
const [extension] = result.firstPage;