mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-09 21:32:31 +02: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
|
||||
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;
|
||||
print('Domain ID:', domainID);
|
||||
|
||||
// Fetch the domain metadata from the metaverse
|
||||
var domainData = request(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;
|
||||
print('Domain metadata:', JSON.stringify(metadata));
|
||||
|
||||
|
|
Loading…
Reference in a new issue