Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/webui/client/src/sql-parser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ WHERE to_unixtime(${timestampKey}) BETWEEN ${startTimestamp.unix()} AND ${endTim
try {
validate(queryString);
} catch (err: unknown) {
throw new Error(`The constructed SQL is not valid: ${queryString}`, {cause: err});
console.error(`The constructed SQL is not valid: ${queryString}`, err);
}

return queryString;
Expand Down Expand Up @@ -185,7 +185,7 @@ ORDER BY timestamps.idx
try {
validate(queryString);
} catch (err: unknown) {
throw new Error(`The constructed SQL is not valid: ${queryString}`, {cause: err});
console.error(`The constructed SQL is not valid: ${queryString}`, err);
}

return queryString;
Expand Down
Loading