Skip to content

Commit bcfe220

Browse files
authored
Merge pull request #1 from DougReeder/align-eslint-ajv
2 parents 43f978c + b9445a8 commit bcfe220

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

admin/src/react-components/content-cdn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class ContentCDNComponent extends Component {
168168
return;
169169
}
170170
} catch (e) {
171-
console.error(e);
171+
console.error(`while fetching "whats-new.html":`, e);
172172
abort();
173173
return;
174174
}

admin/src/react-components/import-content.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class ImportContentComponent extends Component {
7878
const type = isScene ? "scenes" : "avatars";
7979
return { url: `${parsedUrl.origin}/api/v1/${type}/${pathParts[2]}`, isScene };
8080
} catch (e) {
81-
console.error(e);
81+
console.error("in apiInfoForSubmittedUrl:", e);
8282
return null;
8383
}
8484
}
@@ -216,7 +216,7 @@ class ImportContentComponent extends Component {
216216
try {
217217
res = await fetchReticulumAuthenticated(`/api/v1/${type}`, "POST", { url: importUrl });
218218
} catch (e) {
219-
console.error(e);
219+
console.error("onImport:", e);
220220
this.setImportResult(url, RESULTS.failed);
221221
continue;
222222
}

scripts/bot/run-bot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function log(...objs) {
7878
log("Interaction error", e.message);
7979
if (retryCount-- < 0) {
8080
// If retries failed, throw and restart navigation.
81-
throw new Error(e);
81+
throw new Error("too many re-tries interacting with page so audio can play", { cause: e });
8282
}
8383
log("Retrying...");
8484
backoff *= 2;

src/components/remix-avatar-button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ AFRAME.registerComponent("remix-avatar-button", {
2828

2929
this.label.setAttribute("text", "value", "Saved!");
3030
} catch (e) {
31-
console.warn(e);
31+
console.warn(`while saving remixed avatar ${this.avatar?.name} ${this.avatar?.avatar_id}:`, e);
3232
this.label.setAttribute("text", "value", "Error");
3333
}
3434

0 commit comments

Comments
 (0)