Skip to content

Commit

Permalink
log return code for run_bat_as_admin
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisvang committed Feb 13, 2024
1 parent 10372ae commit 89ef64d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/tufup/utils/platform_specific.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,12 @@ def run_bat_as_admin(file_path: Union[pathlib.Path, str]):
None, # working directory (default is cwd)
1, # show window normally
)
return result > 32
success = result > 32
if not success:
logger.error(
f'failed to run batch script as admin (ShellExecuteW returned {result})'
)
return success


def _install_update_win(
Expand Down

0 comments on commit 89ef64d

Please sign in to comment.