monitoring
                                
                                
                                
                                    monitoring copied to clipboard
                            
                            
                            
                        fix(cmd): fix monitoring.go (#444)
This is an automated cherry-pick of #444
- It should exit with non-zero code when err happened.
 - And it's no need to delete the folder otherwise it will delete the normal dir when error happened.
 
Signed-off-by: wuhuizuo [email protected]
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign csuzhangxc for approval. For more information see the Code Review Process.
The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
                                    
                                    
                                    
                                Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment