summaryrefslogtreecommitdiffstats
path: root/platform/web/SCsub
diff options
context:
space:
mode:
Diffstat (limited to 'platform/web/SCsub')
-rw-r--r--platform/web/SCsub4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/web/SCsub b/platform/web/SCsub
index 3e0cc9ac4a..bc5893ab3a 100644
--- a/platform/web/SCsub
+++ b/platform/web/SCsub
@@ -1,5 +1,7 @@
#!/usr/bin/env python
+from methods import print_error
+
Import("env")
# The HTTP server "targets". Run with "scons p=web serve", or "scons p=web run"
@@ -11,7 +13,7 @@ if "serve" in COMMAND_LINE_TARGETS or "run" in COMMAND_LINE_TARGETS:
try:
port = int(port)
except Exception:
- print("GODOT_WEB_TEST_PORT must be a valid integer")
+ print_error("GODOT_WEB_TEST_PORT must be a valid integer")
sys.exit(255)
serve(env.Dir(env.GetTemplateZipPath()).abspath, port, "run" in COMMAND_LINE_TARGETS)
sys.exit(0)