Fix build TXT template.
Fix build TXT template.

  * Fix closing if tag.
  * Add error_details parsing and structure.

joyxu/kernelci-backend,kernelci/kernelci-backend,joyxu/kernelci-backend,kernelci/kernelci-backend,joyxu/kernelci-backend