mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Make error message when encountering unrecognized file extensions more helpful
This commit is contained in:
@@ -527,7 +527,7 @@ func (page *Page) Convert() error {
|
||||
case "html":
|
||||
page.Content = bytesToHTML(page.rawContent)
|
||||
default:
|
||||
return errors.New("Error converting unsupported file type " + markupType)
|
||||
return fmt.Errorf("Error converting unsupported file type '%s' for page '%s'", markupType, page.FileName)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user