summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-09 13:58:43 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-09 13:58:43 -0300
commitd137ebb3c04a53883570568b3dd282a17d256199 (patch)
tree8ea6983b2eed2362d19cf2f411883ae18cbd1395
parentf4a49a91994b4505bce9370003623d882d75be89 (diff)
downloadrenpy-d137ebb3c04a53883570568b3dd282a17d256199.tar.gz
renpy-d137ebb3c04a53883570568b3dd282a17d256199.tar.bz2
renpy-d137ebb3c04a53883570568b3dd282a17d256199.tar.xz
renpy-d137ebb3c04a53883570568b3dd282a17d256199.zip
Log if the launcher fails
-rw-r--r--game/renpy.rpy5
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 =/