mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-11-13 21:42:52 -05:00
fix: Add tool exception for logging purpose
This commit is contained in:
@ -18,6 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "FindFileTool.hpp"
|
||||
#include "ToolExceptions.hpp"
|
||||
|
||||
#include <logger/Logger.hpp>
|
||||
#include <projectexplorer/project.h>
|
||||
@ -113,7 +114,7 @@ QFuture<QString> FindFileTool::executeAsync(const QJsonObject &input)
|
||||
QString query = input["query"].toString().trimmed();
|
||||
if (query.isEmpty()) {
|
||||
QString error = "Error: query parameter is required and cannot be empty";
|
||||
throw std::invalid_argument(error.toStdString());
|
||||
throw ToolInvalidArgument(error);
|
||||
}
|
||||
|
||||
QString filePattern = input["file_pattern"].toString().trimmed();
|
||||
|
||||
Reference in New Issue
Block a user