summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-12-26 03:36:06 +0100
committerPřemysl Eric Janouch <p@janouch.name>2023-12-26 03:36:06 +0100
commit615860362a39b769f75cf45a8d0e58d3e218e72a (patch)
tree248d99b3ece62fea8338122446d2f81972628115
parent8087042509ae7b09369d42e361ca73bda0c7c300 (diff)
downloadgallery-615860362a39b769f75cf45a8d0e58d3e218e72a.tar.gz
gallery-615860362a39b769f75cf45a8d0e58d3e218e72a.tar.xz
gallery-615860362a39b769f75cf45a8d0e58d3e218e72a.zip
Don't fail entirely on tag import errors
-rw-r--r--main.go2
-rwxr-xr-xtest.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 04bc307..0d89b06 100644
--- a/main.go
+++ b/main.go
@@ -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 {
diff --git a/test.sh b/test.sh
index a5136f4..a51aeb2 100755
--- a/test.sh
+++ b/test.sh
@@ -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" \