mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
log failure to fetch metadata
This commit is contained in:
parent
aca3d4d90b
commit
c784fa42e9
1 changed files with 9 additions and 2 deletions
|
@ -16,14 +16,21 @@ location.hostChanged.connect(function(host) {
|
||||||
|
|
||||||
// Fetch the domain ID from the metaverse
|
// Fetch the domain ID from the metaverse
|
||||||
var placeData = request(SERVER + '/places/' + host);
|
var placeData = request(SERVER + '/places/' + host);
|
||||||
if (!placeData) { return; }
|
if (!placeData) {
|
||||||
|
print('Cannot find place name - abandoning metadata request for', host);
|
||||||
|
return;
|
||||||
|
|
||||||
|
}
|
||||||
var domainID = placeData.data.place.domain.id;
|
var domainID = placeData.data.place.domain.id;
|
||||||
print('Domain ID:', domainID);
|
print('Domain ID:', domainID);
|
||||||
|
|
||||||
// Fetch the domain metadata from the metaverse
|
// Fetch the domain metadata from the metaverse
|
||||||
var domainData = request(SERVER + '/domains/' + domainID);
|
var domainData = request(SERVER + '/domains/' + domainID);
|
||||||
print(SERVER + '/domains/' + domainID);
|
print(SERVER + '/domains/' + domainID);
|
||||||
if (!domainData) { return; }
|
if (!domainData) {
|
||||||
|
print('Cannot find domain data - abandoning metadata request for', domainID);
|
||||||
|
return;
|
||||||
|
}
|
||||||
var metadata = domainData.domain;
|
var metadata = domainData.domain;
|
||||||
print('Domain metadata:', JSON.stringify(metadata));
|
print('Domain metadata:', JSON.stringify(metadata));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue