Continuing with error refactoring.
This commit is contained in:
@@ -135,7 +135,7 @@ fn create_response(
|
||||
let account = accounts
|
||||
.get(&transaction.account_id)
|
||||
.cloned()
|
||||
.ok_or(AppError::Internal)?;
|
||||
.ok_or(AppError::Unknown)?;
|
||||
|
||||
Ok(TransactionResponse::new(transaction, account))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user