Skip to content

Commit 55d20f2

Browse files
committed
Record the calendar response received in case of error
1 parent ad65a62 commit 55d20f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/common/calendar.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ async function importEvent(event, calendarServer, token) {
235235
});
236236
const json = await response.json();
237237
if (!json.event?.url) {
238-
throw new Error(`Unexpected response from W3C server on event import request`);
238+
throw new Error(`Unexpected response from W3C server on event import request:\n${JSON.stringify(json, null, 2)}`);
239239
}
240240
return json.event.url;
241241
}

0 commit comments

Comments
 (0)