summaryrefslogtreecommitdiff
path: root/demoscript/Util.py
diff options
context:
space:
mode:
Diffstat (limited to 'demoscript/Util.py')
-rw-r--r--demoscript/Util.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/demoscript/Util.py b/demoscript/Util.py
index 144b57ab365..6a287452293 100644
--- a/demoscript/Util.py
+++ b/demoscript/Util.py
@@ -442,7 +442,7 @@ def guessBuildMode():
else:
m = guessBuildModeForDir(".")
if m is None:
- raise "cannot guess debug or release mode"
+ raise RuntimeError("cannot guess debug or release mode")
return m
def isDebugBuild():
@@ -669,6 +669,10 @@ def processCmdLine():
if env:
dumpenv()
+ if iceHome and isWin32() and not buildmode:
+ print "Error: please define --mode=debug or --mode=release"
+ sys.exit(1)
+
import inspect
frame = inspect.currentframe().f_back
if frame and os.path.split(frame.f_code.co_filename)[1] == "expect.py":