← Back to team overview

widelands-dev team mailing list archive

[Merge] lp:~widelands-dev/widelands-website/add_DISPLAY_hint into lp:widelands-website

 

kaputtnik has proposed merging lp:~widelands-dev/widelands-website/add_DISPLAY_hint into lp:widelands-website.

Requested reviews:
  Widelands Developers (widelands-dev)

For more details, see:
https://code.launchpad.net/~widelands-dev/widelands-website/add_DISPLAY_hint/+merge/296491

If wl_map_object_info fails when running update_help on the website, the error message gives a hint how to possible fix this.
-- 
Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands-website/add_DISPLAY_hint into lp:widelands-website.
=== modified file 'wlhelp/management/commands/update_help.py'
--- wlhelp/management/commands/update_help.py	2016-05-22 11:35:57 +0000
+++ wlhelp/management/commands/update_help.py	2016-06-04 11:20:06 +0000
@@ -296,7 +296,8 @@
                 [os.path.normpath('wl_map_object_info'), json_directory])
         except:
             print(
-                "Error: Unable to execute 'wl_map_object_info' for generating the JSON files.")
+                "Error: Unable to execute 'wl_map_object_info' for generating the JSON files."
+                "Have you exported DISPLAY = ':1' before running update_help?")
 
         # Now we validate that they are indeed JSON files (syntax check only)
         validator_script = os.path.normpath(


Follow ups