Skip to content

Commit

Permalink
Merge pull request #5 from exoego/warn
Browse files Browse the repository at this point in the history
Output function error only if it exists
  • Loading branch information
exoego committed Mar 28, 2024
2 parents b19e0ea + 5bfaa0b commit f885990
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lambda_invoker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ impl LambdaInvoker {
.payload(self.payload.clone())
.send()
.await?;
info!("Function error: {:?}", result.function_error);
result
.function_error()
.map(|e| warn!("Function error: {:?}", e));
Ok(result.function_error.is_none())
}

Expand Down

0 comments on commit f885990

Please sign in to comment.