formatTemplateObjectCreatingError formats the error that created from creating the template object.
(filePath, tplName string, err error)
| 362 | |
| 363 | // formatTemplateObjectCreatingError formats the error that created from creating the template object. |
| 364 | func (view *View) formatTemplateObjectCreatingError(filePath, tplName string, err error) error { |
| 365 | if err != nil { |
| 366 | return gerror.NewSkip(1, gstr.Replace(err.Error(), tplName, filePath)) |
| 367 | } |
| 368 | return nil |
| 369 | } |
| 370 | |
| 371 | // searchFile returns the absolute path of the `file` and its template folder path. |
| 372 | // The returned `folder` is the template folder path, not the folder of the template file `path`. |
no test coverage detected