mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 13:30:39 +08:00
chore: add .attach_printable for InternalServerError (#368)
This commit is contained in:
@ -467,7 +467,8 @@ where
|
||||
)
|
||||
.await
|
||||
.into_report()
|
||||
.change_context(errors::ApiErrorResponse::InternalServerError)?;
|
||||
.change_context(errors::ApiErrorResponse::InternalServerError)
|
||||
.attach_printable("Failed while getting process schedule time")?;
|
||||
|
||||
match schedule_time {
|
||||
Some(stime) => {
|
||||
@ -476,6 +477,7 @@ where
|
||||
.await
|
||||
.into_report()
|
||||
.change_context(errors::ApiErrorResponse::InternalServerError)
|
||||
.attach_printable("Failed while adding task to process tracker")
|
||||
}
|
||||
None => Ok(()),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user