Skip to content
Snippets Groups Projects
Unverified Commit bd0133ad authored by Matthias Schiffer's avatar Matthias Schiffer Committed by GitHub
Browse files

scripts/target_lib.lua: print a meaningful error message for missing site_code (#2094)

site_code is evaluated early during config generation, so a site.conf
without site_code would hit this assertion that just printed 'Assertion
failed'. Add a proper error message to tell users what went wrong.

The inner assert() is removed, as it should never be hit (as site.conf
syntax will have already been validated when this script runs), and it
doesn't add anything (even without the assert, the attempt to index a
nil value would throw an error).
parent b66dcd04
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment