Skip to content

Commit 774cac4

Browse files
authored
chore(cubestore): Change error message for deadlines (#6714)
1 parent da82707 commit 774cac4

File tree

1 file changed

+6
-2
lines changed
  • rust/cubestore/cubestore/src

1 file changed

+6
-2
lines changed

rust/cubestore/cubestore/src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,12 @@ impl From<std::time::SystemTimeError> for CubeError {
258258
}
259259

260260
impl From<Elapsed> for CubeError {
261-
fn from(v: Elapsed) -> Self {
262-
CubeError::from_error(v)
261+
fn from(_: Elapsed) -> Self {
262+
CubeError {
263+
message: "Query execution timed out. Please consider evaluating EXPLAIN plan and optimizing the query.".to_string(),
264+
backtrace: Backtrace::capture().to_string(),
265+
cause: CubeErrorCauseType::Internal,
266+
}
263267
}
264268
}
265269

0 commit comments

Comments
 (0)