enhanced the inclusion path handling in the sample hcl server code

added HCL_SERVER_SCRIPT_INCLUDE_PATH
added optstate field in hcl_server_worker_t
This commit is contained in:
2018-03-17 05:44:40 +00:00
parent b3cef9ec5c
commit c41c3a12af
4 changed files with 123 additions and 27 deletions

View File

@ -1244,7 +1244,7 @@ static int begin_include (hcl_t* hcl)
if (hcl->c->reader (hcl, HCL_IO_OPEN, arg) <= -1)
{
hcl_setsynerr (hcl, HCL_SYNERR_INCLUDE, TOKEN_LOC(hcl), TOKEN_NAME(hcl));
hcl_setsynerrbfmt (hcl, HCL_SYNERR_INCLUDE, TOKEN_LOC(hcl), TOKEN_NAME(hcl), "unable to include %js", io_name);
goto oops;
}