about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-26 16:54:36 +0200
committerEmile <hanemile@protonmail.com>2019-10-26 16:54:36 +0200
commit530783f34c921e6b99f6118e77f61dae8f5bd5c4 (patch)
treef788b677f51ffde183c2e75b0f09b84de9a957d4 /src
parenta3fc010ac1c08ac475eefd7d60ff684b075ce2c9 (diff)
correct error
Diffstat (limited to 'src')
-rw-r--r--src/db.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db.go b/src/db.go
index 3601b1b..22ab1a8 100644
--- a/src/db.go
+++ b/src/db.go
@@ -145,7 +145,7 @@ func dbDeleteChallengeByUUID(uuid string) error {
 
 	err := db.QueryRow(query, uuid)
 	if err != nil {
-		return err
+		return fmt.Errorf("could not delete the challenge: %s", err)
 	}
 
 	return nil