diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-09 13:58:43 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-09 13:58:43 -0300 |
commit | d137ebb3c04a53883570568b3dd282a17d256199 (patch) | |
tree | 8ea6983b2eed2362d19cf2f411883ae18cbd1395 | |
parent | f4a49a91994b4505bce9370003623d882d75be89 (diff) | |
download | renpy-d137ebb3c04a53883570568b3dd282a17d256199.tar.gz renpy-d137ebb3c04a53883570568b3dd282a17d256199.tar.bz2 renpy-d137ebb3c04a53883570568b3dd282a17d256199.tar.xz renpy-d137ebb3c04a53883570568b3dd282a17d256199.zip |
Log if the launcher fails
-rw-r--r-- | game/renpy.rpy | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/game/renpy.rpy b/game/renpy.rpy index d147257..1d2eff7 100644 --- a/game/renpy.rpy +++ b/game/renpy.rpy @@ -107,7 +107,10 @@ label start: renpy.iconify() ## Launch your prefered game client, wait for it to finish - execute("%s %s%s" % (CMD, OPT, PWD), shell=True) + app=execute("%s %s%s" % (CMD, OPT, PWD), shell=True) + if app: + traceback.print_exc() + stdout("An error happened: %d" % app) # NOTE: Now we would like to un-minimize ourselves # But we cannot =/ |