MCPcopy
hub / github.com/continuedev/continue / error

Method error

core/util/Logger.ts:61–76  ·  view source on GitHub ↗
(
    error: Error | string | unknown,
    context?: Record<string, any>,
  )

Source from the content-addressed store, hash-verified

59 }
60
61 public error(
62 error: Error | string | unknown,
63 context?: Record<string, any>,
64 ): void {
65 let errorMessage: string;
66
67 if (error instanceof Error) {
68 errorMessage = error.message;
69 } else if (typeof error === "string") {
70 errorMessage = error;
71 } else {
72 errorMessage = "An unknown error occurred";
73 }
74
75 this.winston.error(errorMessage, context);
76 }
77}
78
79export const Logger = LoggerClass.getInstance();

Callers 15

addProductMethod · 0.80
addToCartFunction · 0.80
removeFromCartFunction · 0.80
applyDiscountCodeFunction · 0.80
checkoutFunction · 0.80
loginFunction · 0.80
uploadFileFunction · 0.80
deleteFileFunction · 0.80
updateFileMetadataFunction · 0.80
getFileDataFunction · 0.80
searchFilesFunction · 0.80

Calls

no outgoing calls

Tested by 1

cleanupChatFunction · 0.64