Switch to use ESLint 10 (#5794)

This commit is contained in:
James Brunton
2026-02-25 14:30:40 +00:00
committed by GitHub
parent 5c39acecd8
commit c9dafc85fd
20 changed files with 173 additions and 317 deletions
@@ -174,7 +174,9 @@ export const executeToolOperationWithPrefix = async (
} catch (error: any) {
console.error(`${operationName} failed:`, error);
throw new Error(`${operationName} operation failed: ${error.response?.data || error.message}`);
throw new Error(`${operationName} operation failed: ${error.response?.data || error.message}`, {
cause: error,
});
}
};
+2 -1
View File
@@ -139,7 +139,8 @@ export async function convertImageToPdf(
} catch (error) {
console.error('Error converting image to PDF:', error);
throw new Error(
`Failed to convert image to PDF: ${error instanceof Error ? error.message : 'Unknown error'}`
`Failed to convert image to PDF: ${error instanceof Error ? error.message : 'Unknown error'}`,
{ cause: error }
);
}
}