Skip to content
Snippets Groups Projects
Commit a8ca68ea authored by Christian Pointner's avatar Christian Pointner
Browse files

fix vet errors

parent 1394ecbc
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,7 @@ func (st *Store) SyncFileMetadataFromFile(group string, id uint64) error { ...@@ -65,7 +65,7 @@ func (st *Store) SyncFileMetadataFromFile(group string, id uint64) error {
return fmt.Errorf("ffprobe returned %d", status.ExitStatus()) return fmt.Errorf("ffprobe returned %d", status.ExitStatus())
} }
} }
return fmt.Errorf("getting exit code of ffprobe failed:", err) return fmt.Errorf("getting exit code of ffprobe failed: %v", err)
} }
var output ffprobeOutput var output ffprobeOutput
...@@ -75,7 +75,7 @@ func (st *Store) SyncFileMetadataFromFile(group string, id uint64) error { ...@@ -75,7 +75,7 @@ func (st *Store) SyncFileMetadataFromFile(group string, id uint64) error {
} }
d, err := time.ParseDuration(output.Format.DurationSec + "s") d, err := time.ParseDuration(output.Format.DurationSec + "s")
if err != nil { if err != nil {
return fmt.Errorf("unable to parse duration from ffprobe output:", err) return fmt.Errorf("unable to parse duration from ffprobe output: %v", err)
} }
// TODO: store metadata in database // TODO: store metadata in database
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment