MCPcopy Create free account
hub / github.com/echQoQ/RustSL / on_gen_error

Method on_gen_error

gui/main_window.py:391–405  ·  view source on GitHub ↗
(self, msg)

Source from the content-addressed store, hash-verified

389 }
390
391 def on_gen_error(self, msg):
392 self.stop_loading_anim()
393 self.gen_btn.setEnabled(True)
394 self.progress.setValue(0)
395 if "To debug, run the following command manually:" in msg:
396 parts = msg.split("To debug, run the following command manually:")
397 error_part = parts[0].strip()
398 cmd_part = parts[1].strip()
399 self.log_append('[Error] ' + error_part)
400 self.log_append('To debug, run the following command manually:')
401 self.log_append(cmd_part)
402 QMessageBox.critical(self, 'Build Failed', f"{error_part}\n\nTo debug, copy and run this command:\n{cmd_part}")
403 else:
404 self.log_append('[Error] ' + msg)
405 QMessageBox.critical(self, 'Error', msg)
406
407 def on_forgery_changed(self):
408 enabled = self.forgery_enable_box.isChecked()

Callers

nothing calls this directly

Calls 2

stop_loading_animMethod · 0.95
log_appendMethod · 0.95

Tested by

no test coverage detected