diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-12-26 03:36:06 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-12-26 03:36:06 +0100 |
commit | 615860362a39b769f75cf45a8d0e58d3e218e72a (patch) | |
tree | 248d99b3ece62fea8338122446d2f81972628115 | |
parent | 8087042509ae7b09369d42e361ca73bda0c7c300 (diff) | |
download | gallery-615860362a39b769f75cf45a8d0e58d3e218e72a.tar.gz gallery-615860362a39b769f75cf45a8d0e58d3e218e72a.tar.xz gallery-615860362a39b769f75cf45a8d0e58d3e218e72a.zip |
Don't fail entirely on tag import errors
-rw-r--r-- | main.go | 2 | ||||
-rwxr-xr-x | test.sh | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1855,7 +1855,7 @@ func cmdTag(args []string) error { return nil } if _, err := stmt.Exec(sha1, spaceID, tag, weight, weight); err != nil { - return fmt.Errorf("%s: %s", sha1, err) + log.Printf("%s: %s\n", sha1, err) } } if err := scanner.Err(); err != nil { @@ -7,7 +7,7 @@ mkdir -p $target cp -ra $HOME/Pictures/Anime $input ./gallery init $target -./gallery sync $target $input +./gallery sync $target $input "$@" ./gallery thumbnail $target ./gallery dhash $target ./gallery tag $target autotagger "DanBooru autotagger" \ |