about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index fa7eda7..466ee21 100644
--- a/main.go
+++ b/main.go
@@ -90,6 +90,8 @@ func fetchAllChallenges() (Challenges, error) {
 	// unmarshal the resulting json into a Challenges struct
 	var challenges Challenges
 	if err := json.Unmarshal(res.Bytes(), &challenges); err != nil {
+		fmt.Printf("Challenge unmarshal error: %d\n", res.StatusCode)
+		fmt.Println(res.String())
 		return Challenges{}, err
 	}
 	fmt.Println("Done fetching all challenges")