fix missing format argument and wrong struct tag
This commit is contained in:
parent
39234132d7
commit
ddce60a558
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
@ -30,7 +30,7 @@ type UgoiraManifestBodyDesc struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type UgoiraManifest struct {
|
type UgoiraManifest struct {
|
||||||
Error bool `json: "error"`
|
Error bool `json:"error"`
|
||||||
Message string `json:"message"`
|
Message string `json:"message"`
|
||||||
Body UgoiraManifestBodyDesc `json:"body"`
|
Body UgoiraManifestBodyDesc `json:"body"`
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,7 @@ func getUgoira(postId PostId, flags CliFlags) {
|
||||||
if len(flags.manifestFileName) > 0 {
|
if len(flags.manifestFileName) > 0 {
|
||||||
ugoiraManifestFileName = flags.manifestFileName
|
ugoiraManifestFileName = flags.manifestFileName
|
||||||
} else {
|
} else {
|
||||||
ugoiraManifestFileName = fmt.Sprintf("./%d_ugoira.json")
|
ugoiraManifestFileName = fmt.Sprintf("./%d_ugoira.json", postId)
|
||||||
}
|
}
|
||||||
say(flags.verbose, "Dumping manifest (to: %s)", ugoiraManifestFileName)
|
say(flags.verbose, "Dumping manifest (to: %s)", ugoiraManifestFileName)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue