Do not fail on unknown Jekyll file
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 14 Dec 2015 14:30:58 +0000 (15:30 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 14 Dec 2015 14:30:58 +0000 (15:30 +0100)
Fixes #1705

commands/import_jekyll.go

index b781d0f596bc96e0df085032ec7c71c2b5875bd0..8209481745add7de5e8723811cded681be659304 100644 (file)
@@ -385,8 +385,8 @@ func convertJekyllPost(path, relPath, targetDir string, draft bool) error {
        filename := filepath.Base(path)
        postDate, postName, err := parseJekyllFilename(filename)
        if err != nil {
-               jww.ERROR.Println("Parse filename error:", filename)
-               return err
+               jww.WARN.Printf("Failed to parse filename '%s': %s. Skipping.", filename, err)
+               return nil
        }
 
        jww.TRACE.Println(filename, postDate, postName)