aboutsummaryrefslogtreecommitdiffstats
path: root/data.go
diff options
context:
space:
mode:
Diffstat (limited to 'data.go')
-rw-r--r--data.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/data.go b/data.go
index 3327ca4..065e891 100644
--- a/data.go
+++ b/data.go
@@ -87,7 +87,8 @@ func (store *SqlStore) GetPassword(name string) (string, error) {
func (store *SqlStore) PutScrobbles(scrobbles []Scrobble) {
for _, s := range scrobbles {
- store.Exec("INSERT INTO scrobbles VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",
+ if _, err := store.Exec(
+ "INSERT INTO scrobbles VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",
s.Artist,
s.AlbumArtist,
s.TrackName,
@@ -98,6 +99,8 @@ func (store *SqlStore) PutScrobbles(scrobbles []Scrobble) {
s.Chosen,
s.Mbid,
s.Session,
- )
+ ); err != nil {
+ fmt.Printf("error : %v\n", err)
+ }
}
}