mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Opt: Removed useless error code
This commit is contained in:
parent
b48b754de7
commit
b66f3c1268
@ -145,18 +145,19 @@ 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(command, error_code)
|
self.show_error(command)
|
||||||
raise ExecutionError
|
raise ExecutionError
|
||||||
else:
|
else:
|
||||||
logger.info(f"[ success ]")
|
logger.info(f"[ success ]")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def show_error(self, command=None, error_code=None):
|
def show_error(self, command=None):
|
||||||
logger.hr("Update failed", 0)
|
logger.hr("Update failed", 0)
|
||||||
self.show_config()
|
self.show_config()
|
||||||
logger.info("")
|
logger.info("")
|
||||||
logger.info(f"Last command: {command}\nerror_code: {error_code}")
|
logger.info(f"Last command: {command}")
|
||||||
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"
|
||||||
)
|
)
|
||||||
|
logger.info("Take the screenshot of entire window if you need help")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user