summaryrefslogtreecommitdiffstats
path: root/app/auto_posts.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/auto_posts.go')
-rw-r--r--app/auto_posts.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/auto_posts.go b/app/auto_posts.go
index 254631c4e..6d1e352e5 100644
--- a/app/auto_posts.go
+++ b/app/auto_posts.go
@@ -44,6 +44,9 @@ func (cfg *AutoPostCreator) UploadTestFile() ([]string, bool) {
path, _ := utils.FindDir("web/static/images")
file, err := os.Open(path + "/" + filename)
+ if err != nil {
+ return nil, false
+ }
defer file.Close()
data := &bytes.Buffer{}