File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ server.registerTool(
9696 const operationId = operation . id ;
9797
9898 // Start the upload in the background (fire-and-forget)
99- ( async ( ) => {
99+ ( async ( ) : Promise < void > => {
100100 try {
101101 if ( stats . isDirectory ( ) ) {
102102 let completedFiles = 0 ;
@@ -141,9 +141,10 @@ server.registerTool(
141141 uploadOperationManager . markCompleted ( operationId ) ;
142142 console . error ( `[${ operationId } ] Upload complete` ) ;
143143 }
144- } catch ( error : any ) {
145- console . error ( `[${ operationId } ] Upload failed:` , error . message ) ;
146- uploadOperationManager . markFailed ( operationId , error . message ) ;
144+ } catch ( error : unknown ) {
145+ const message = error instanceof Error ? error . message : String ( error ) ;
146+ console . error ( `[${ operationId } ] Upload failed:` , message ) ;
147+ uploadOperationManager . markFailed ( operationId , message ) ;
147148 }
148149 } ) ( ) ;
149150
@@ -327,7 +328,7 @@ server.registerTool(
327328
328329// --- Start Server ---
329330
330- async function main ( ) {
331+ async function main ( ) : Promise < void > {
331332 const transport = new StdioServerTransport ( ) ;
332333 // Ensure config file exists
333334 WorkspaceConfigManager . load ( ) ;
You can’t perform that action at this time.
0 commit comments