mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-26 04:45:03 +08:00
Opt: Optimized the hint of update failed
This commit is contained in:
@@ -67,7 +67,7 @@ class DeployConfig(ConfigModel):
|
|||||||
self.show_config()
|
self.show_config()
|
||||||
|
|
||||||
def show_config(self):
|
def show_config(self):
|
||||||
logger.hr("Show deploy config", 0)
|
logger.hr("Show deploy config", 1)
|
||||||
for k, v in self.config.items():
|
for k, v in self.config.items():
|
||||||
if k in ("Password"):
|
if k in ("Password"):
|
||||||
continue
|
continue
|
||||||
@@ -135,16 +135,17 @@ class DeployConfig(ConfigModel):
|
|||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
logger.info(f"[ failure ], error_code: {error_code}")
|
logger.info(f"[ failure ], error_code: {error_code}")
|
||||||
self.show_error()
|
self.show_error(command, error_code)
|
||||||
raise ExecutionError
|
raise ExecutionError
|
||||||
else:
|
else:
|
||||||
logger.info(f"[ success ]")
|
logger.info(f"[ success ]")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def show_error(self):
|
def show_error(self, command=None, error_code=None):
|
||||||
|
logger.hr("Update failed", 0)
|
||||||
self.show_config()
|
self.show_config()
|
||||||
logger.info("")
|
logger.info("")
|
||||||
logger.hr("Update failed", 1)
|
logger.info(f"Last command: {command}\nerror_code: {error_code}")
|
||||||
logger.info(
|
logger.info(
|
||||||
"Please check your deploy settings in config/deploy.yaml "
|
"Please check your deploy settings in config/deploy.yaml "
|
||||||
"and re-open Alas.exe"
|
"and re-open Alas.exe"
|
||||||
|
|||||||
Reference in New Issue
Block a user