We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b9e31e commit 3ab95a0Copy full SHA for 3ab95a0
src/api/index.ts
@@ -379,7 +379,9 @@ export class AtelierAPI {
379
let cookie;
380
let reqTs: Date;
381
const outputRequest = () => {
382
- outputChannel.appendLine(`+- REQUEST - ${reqTs.toLocaleTimeString()} ----------------------------`);
+ outputChannel.appendLine(
383
+ `+- REQUEST - ${(reqTs ?? new Date()).toLocaleTimeString()} ----------------------------`
384
+ );
385
outputChannel.appendLine(`${method} ${proto}://${host}:${port}${path}`);
386
if (cookie) outputChannel.appendLine("COOKIE: <value>");
387
for (const [h, v] of Object.entries(headers)) {
0 commit comments