Skip to content

Commit

Permalink
Ouput errors on stderr.
Browse files Browse the repository at this point in the history
Signed-off-by: RomainMou <58464216+RomainMou@users.noreply.github.com>
  • Loading branch information
RomainMou committed Oct 21, 2024
1 parent 2c87495 commit 3aa2b23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions needrestart_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ def main():
).stdout
needrestart_data = NeedRestartData(needrestart_output)
except subprocess.CalledProcessError as e:
print(f"Error executing needrestart:\n{e}")
print(f"Error executing needrestart:\n{e}", file=sys.stderr)
sys.exit(1)
except Exception as e:
print(f"An unexpected error occurred:\n{e}")
print(f"An unexpected error occurred:\n{e}", file=sys.stderr)
sys.exit(1)

write_timestamp(registry, needrestart_data)
Expand Down

0 comments on commit 3aa2b23

Please sign in to comment.