The Oven

Builder World => PEBakery => Topic started by: NIKZZZZ on July 13, 2018, 07:49:02 AM

Title: Log - error report
Post by: NIKZZZZ on July 13, 2018, 07:49:02 AM
Hi, ied206.
Incorrect output of information about the error in the log file.
Example:
Code: [Select]
<Errors>
- [1] Error in Script [Build Core] (Win10XPE\Core.script)
[Error] RegHiveLoad - Hive file [D:\Win10XPE\Temp\Install.hives\DEFAULT] does not exist (RegHiveLoad,Tmp_Install_Default,%Gtemp%\Install.hives\DEFAULT) (Line 389)
But the error occurs in the script Win10XPE\Macro.script (Line 389), which is called from Win10XPE\Core.script.
Would like the log to be something like this:
Code: [Select]
<Errors>
- [1] Error in Script [Build Core] (Win10XPE\Core.script)\(Win10XPE\Macro.script)
[Error] RegHiveLoad - Hive file [D:\Win10XPE\Temp\Install.hives\DEFAULT] does not exist (RegHiveLoad,Tmp_Install_Default,%Gtemp%\Install.hives\DEFAULT) (Line 389)
Regards, Nikzzzz.

Title: Re: Log - error report
Post by: ied206 on July 14, 2018, 05:36:59 PM
Thanks for reporting, NIKZZZZ.

PEBakery's log database is designed to let a build log (denoting one command) can point to only one script where it resides in.
This kind of limitation was not a problem in entire log, because you can see the context like which script's section is being called by macro call.
But it becomes a problem because error summary omits the context. I will provide a workaround for this issue.
Title: Re: Log - error report
Post by: ied206 on July 23, 2018, 05:43:56 PM
Please test with lastest nightly (https://ci.appveyor.com/api/projects/ied206/PEBakery/artifacts/nightly.zip?branch=develop) binary.

Changed log exports:

- Text export
[attach=1]

- HTML export
[attach=2]