Skip to content

Commit

Permalink
fix: throw error while handling non-existant tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Neet-Nestor committed Sep 14, 2024
1 parent dcb421f commit bac2888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/page/overleaf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class PageHandler implements IPageHandler {
const toolImplementation = this.toolImplementations[toolName as ToolName];
return toolImplementation(params);
} else {
console.warn(`Tool '${toolName}' not found in handler.`);
throw new Error(`Tool '${toolName}' not found in handler.`);
}
}

Expand Down

0 comments on commit bac2888

Please sign in to comment.