Don't assume that the query always succeeds. Error reporting is rudimentary (alert), but better than nothing.
This commit is contained in:
parent
6c9ad3f31d
commit
4359f894b8
@ -52,6 +52,7 @@ ReconStandardServicePanel.prototype._guessTypes = function(f) {
|
||||
}),
|
||||
null,
|
||||
function(data) {
|
||||
if (data.code && data.code === 'ok') {
|
||||
self._types = data.types;
|
||||
|
||||
if (self._types.length === 0 && "defaultTypes" in self._service) {
|
||||
@ -71,6 +72,9 @@ ReconStandardServicePanel.prototype._guessTypes = function(f) {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
alert('Guess Types query failed ' + data.code + ' : ' + data.message);
|
||||
}
|
||||
|
||||
dismissBusy();
|
||||
f();
|
||||
|
Loading…
Reference in New Issue
Block a user