Better postproc handling

This commit is contained in:
Pavel Shevaev 2022-05-25 16:42:39 +03:00
parent 291e9622c4
commit 640fd7b0d1
1 changed files with 4 additions and 1 deletions

View File

@ -300,7 +300,10 @@ function bhl_ast_post_proc($res_file, $post_proc_file)
{
$res = new BhlAstProcResult();
$res->res_file = $res_file;
$data = config_msgpack_unpack(ensure_read($post_proc_file));
$data = ensure_read($post_proc_file);
if(!$data)
return $res;
$data = config_msgpack_unpack($data);
if(!$data)
return $res;