Selaa lähdekoodia

Updated error message on about to no longer reference user

thisnthat 5 vuotta sitten
vanhempi
commit
e63613846c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      about.go

+ 1 - 1
about.go

@@ -30,7 +30,7 @@ func GetAbout(config APIConfig) (About, error) {
 	json.NewDecoder(response.Body).Decode(&result)
 
 	if result.ErrorType != "" {
-		return About{}, fmt.Errorf("Failed to get discourse user. Error: %s", strings.Join(result.Errors, "; "))
+		return About{}, fmt.Errorf("Failed to get discourse version. Error: %s", strings.Join(result.Errors, "; "))
 	}
 
 	return result.About, nil