Make error message when encountering unrecognized file extensions more helpful

This commit is contained in:
Ask Bjørn Hansen 2014-02-27 21:25:48 -08:00 committed by spf13
parent ea8d0981d5
commit 0becad727a

View file

@ -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
}