diff options
author | worldofpeace <worldofpeace@protonmail.ch> | 2019-11-22 18:05:21 -0500 |
---|---|---|
committer | worldofpeace <worldofpeace@protonmail.ch> | 2019-11-22 18:05:31 -0500 |
commit | 519448d2e3b18969b16d7509269aa5d02ecf3597 (patch) | |
tree | eb27d0072295cf90b65449f388485fb14165d9be /nixos/modules/services/x11/display-managers | |
parent | be5dcb46065f54f9c6b2ef320aa722865337d179 (diff) |
nixos/gdm: don't raise an Exception in set-session script
https://github.com/NixOS/nixpkgs/pull/73378#discussion_r349825541
Diffstat (limited to 'nixos/modules/services/x11/display-managers')
-rwxr-xr-x | nixos/modules/services/x11/display-managers/set-session.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/x11/display-managers/set-session.py b/nixos/modules/services/x11/display-managers/set-session.py index 1c0810fadbf7..0cca80af44e8 100755 --- a/nixos/modules/services/x11/display-managers/set-session.py +++ b/nixos/modules/services/x11/display-managers/set-session.py @@ -78,7 +78,8 @@ def main(): ) user.set_x_session(session) else: - raise Exception(f"Couldn't figure out session type for {session_file}") + logging.error(f"Couldn't figure out session type for {session_file}") + sys.exit(1) if __name__ == "__main__": |