@rian8337/osu-droid-utilities 4.0.0-beta.96 → 4.0.0-beta.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -114,7 +114,7 @@ class Score {
114
114
  }
115
115
  const result = yield apiRequestBuilder.sendRequest();
116
116
  if (result.statusCode !== 200) {
117
- throw new Error("Error retrieving score data");
117
+ throw new Error(`Error retrieving score data: ${result.describeFailure()}`);
118
118
  }
119
119
  let response;
120
120
  try {
@@ -133,7 +133,7 @@ class Score {
133
133
  * Returns a string representative of the class.
134
134
  */
135
135
  toString() {
136
- return `Player: ${this.username}, uid: ${this.uid.toString()}, title: ${this.title}, score: ${this.score.toString()}, combo: ${this.combo.toString()}, rank: ${this.rank}, acc: ${(this.accuracy.value() * 100).toFixed(2)}%, date: ${this.date.toString()}, mods: ${osuBase.ModUtil.modsToOrderedString(this.mods)}, hash: ${this.hash}`;
136
+ return `Player: ${this.username}, uid: ${this.uid.toString()}, title: ${this.title}, score: ${this.score.toString()}, combo: ${this.combo.toString()}, rank: ${this.rank}, acc: ${(this.accuracy.value * 100).toFixed(2)}%, date: ${this.date.toString()}, mods: ${osuBase.ModUtil.modsToOrderedString(this.mods)}, hash: ${this.hash}`;
137
137
  }
138
138
  }
139
139
 
@@ -209,7 +209,7 @@ class Player {
209
209
  .addParameter(typeof uidOrUsername === "number" ? "uid" : "username", uidOrUsername);
210
210
  const result = yield apiRequestBuilder.sendRequest();
211
211
  if (result.statusCode !== 200) {
212
- throw new Error("Error retrieving player data");
212
+ throw new Error(`Error retrieving player data: ${result.describeFailure()}`);
213
213
  }
214
214
  let response;
215
215
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rian8337/osu-droid-utilities",
3
- "version": "4.0.0-beta.96",
3
+ "version": "4.0.0-beta.98",
4
4
  "description": "A module containing utilities for osu!droid.",
5
5
  "keywords": [
6
6
  "osu",
@@ -33,10 +33,10 @@
33
33
  "url": "https://github.com/Rian8337/osu-droid-module/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@rian8337/osu-base": "4.0.0-beta.96"
36
+ "@rian8337/osu-base": "4.0.0-beta.98"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "13af8d35ad74141c270c6b985941b5f2a14e248b"
41
+ "gitHead": "0d1f9256f0caee5123379cf5a8b3c92d1dcfa7bf"
42
42
  }