Skip to content

Commit 3aa2b23

Browse files
committed
Ouput errors on stderr.
Signed-off-by: RomainMou <[email protected]>
1 parent 2c87495 commit 3aa2b23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

needrestart_info.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ def main():
152152
).stdout
153153
needrestart_data = NeedRestartData(needrestart_output)
154154
except subprocess.CalledProcessError as e:
155-
print(f"Error executing needrestart:\n{e}")
155+
print(f"Error executing needrestart:\n{e}", file=sys.stderr)
156156
sys.exit(1)
157157
except Exception as e:
158-
print(f"An unexpected error occurred:\n{e}")
158+
print(f"An unexpected error occurred:\n{e}", file=sys.stderr)
159159
sys.exit(1)
160160

161161
write_timestamp(registry, needrestart_data)

0 commit comments

Comments
 (0)