Skip to content

Commit c682b34

Browse files
save error while updating json/db chart
1 parent a01516f commit c682b34

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

classes/Visualizer/Module/Setup.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ public function refresh_db_for_chart( $chart, $chart_id, $force = false ) {
249249
);
250250

251251
$chart = get_post( $chart_id );
252+
} else {
253+
update_post_meta( $chart_id, Visualizer_Plugin::CF_ERROR, sprintf( 'Error while updating chart: %s', $error ) );
252254
}
253255

254256
return $chart;

0 commit comments

Comments
 (0)