mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 18:15:45 +00:00
Make error message when encountering unrecognized file extensions more helpful
This commit is contained in:
1 parent
ea8d0981d5
commit
0becad727a
1 file changed
+1
-1
+1
-1
@@ -527,7 +527,7 @@ func (page *Page) Convert() error {
|
|||||||
case "html":
|
case "html":
|
||||||
page.Content = bytesToHTML(page.rawContent)
|
page.Content = bytesToHTML(page.rawContent)
|
||||||
default:
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user