0
6
Fork 0

Throw E_ERROR when impossible to include specified file.
The build was successful. Details

Dieser Commit ist enthalten in:
Rafal Kupiec 2019-11-27 20:15:43 +01:00
Ursprung cb71daec12
Commit f3156bcbd5
Signiert von: belliash
GPG-Schlüssel-ID: 4E829243E0CFE6B4
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -9260,7 +9260,7 @@ static int vm_builtin_include(ph7_context *pCtx, int nArg, ph7_value **apArg) {
rc = VmExecIncludedFile(&(*pCtx), &sFile, PH7_AERSCRIPT_CHNK | PH7_AERSCRIPT_FILE);
if(rc != SXRET_OK) {
/* Emit a warning and return false */
PH7_VmThrowError(pCtx->pVm, PH7_CTX_WARNING, "IO error while including file: '%z'", &sFile);
PH7_VmThrowError(pCtx->pVm, PH7_CTX_ERR, "IO error while including file: '%z'", &sFile);
ph7_result_bool(pCtx, 0);
}
return SXRET_OK;