| 104 | add_user_bh(user.name, user.domain, context.log, connection.config) |
| 105 | |
| 106 | def process_errors(self, context, tracker): |
| 107 | ret = True |
| 108 | |
| 109 | if tracker.last_error_msg: |
| 110 | context.log.fail(tracker.last_error_msg) |
| 111 | ret = False |
| 112 | |
| 113 | if not tracker.files_cleaning_success: |
| 114 | context.log.fail("Fail to clean files related to Masky") |
| 115 | context.log.fail(f"Please remove the files named '{tracker.agent_filename}', '{tracker.error_filename}', '{tracker.output_filename}' & '{tracker.args_filename}' within the folder '\\Windows\\Temp\\'") |
| 116 | ret = False |
| 117 | |
| 118 | if not tracker.svc_cleaning_success: |
| 119 | context.log.fail(f"Fail to remove the service named '{tracker.svc_name}', please remove it manually") |
| 120 | ret = False |
| 121 | return ret |