Skip to content

Commit

Permalink
Optimize: 错误处理优化
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiandongx committed Mar 16, 2022
1 parent d8754e0 commit a8b2e28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,12 @@ impl ResultRender for ChartRender {
let mut cms = vec![];
let now = time::Instant::now();
for sql in query.statements {
cms.push(self.engine.select(&sql).await.unwrap())
cms.push(self.engine.select(&sql).await?)
}

if query.chart.is_none() {
continue;
}

let chart_config = query.chart.unwrap();
let mut dest =
Path::new(&self.config.display.destination).join(chart_config.name.clone());
Expand Down

0 comments on commit a8b2e28

Please sign in to comment.