Skip to content

Commit

Permalink
error good-ly
Browse files Browse the repository at this point in the history
  • Loading branch information
oscartbeaumont committed Nov 8, 2023
1 parent f5e0a86 commit fb7f269
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions crates/core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,11 @@ impl From<ExecError> for ProcedureError {
cause: None,
},
ExecError::Resolver(err) => return err.into(),
// ExecError::ErrSubscriptionNotFound => Error {
// code: ErrorCode::InternalServerError,
// message: "error a procedure returned an empty stream".into(),
// cause: None,
// },
// ExecError::ErrSubscriptionAlreadyClosed => Error {
// code: ErrorCode::InternalServerError,
// message: "error subscription was already closed".into(),
// cause: None,
// },
// TODO: Sort out this panic
_ => todo!(),
ExecError::ErrSubscriptionNotFound => Error {
code: ErrorCode::InternalServerError,
message: "error a procedure returned an empty stream".into(),
cause: None,
},
})
}
}
Expand Down

0 comments on commit fb7f269

Please sign in to comment.