From 6973734d5bc935616bc9be28aa7b13b7146184cd Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sun, 17 Mar 2024 11:59:46 +0000 Subject: [PATCH] Doc: Fixed sponsors --- README.md | 12 ++++++------ packages/tools/sponsors.json | 2 +- packages/tools/utils/loadSponsors.ts | 6 +++++- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6ff4ca106..f72ba521c 100644 --- a/README.md +++ b/README.md @@ -39,12 +39,12 @@ Please see the [donation page](https://github.com/laurent22/joplin/blob/dev/read | | | | | | :---: | :---: | :---: | :---: | -|
[andypiper](https://github.com/andypiper) |
[avanderberg](https://github.com/avanderberg) |
[chr15m](https://github.com/chr15m) |
[CyberXZT](https://github.com/CyberXZT) | -|
[dbrandonjohnson](https://github.com/dbrandonjohnson) |
[dchecks](https://github.com/dchecks) |
[fats](https://github.com/fats) |
[Galliver7](https://github.com/Galliver7) | -|
[Hegghammer](https://github.com/Hegghammer) |
[jamesandariese](https://github.com/jamesandariese) |
[jknowles](https://github.com/jknowles) |
[KentBrockman](https://github.com/KentBrockman) | -|
[konishi-t](https://github.com/konishi-t) |
[marcdw1289](https://github.com/marcdw1289) |
[matmoly](https://github.com/matmoly) |
[maxtruxa](https://github.com/maxtruxa) | -|
[mu88](https://github.com/mu88) |
[saarantras](https://github.com/saarantras) |
[sif](https://github.com/sif) |
[taskcruncher](https://github.com/taskcruncher) | -|
[tateisu](https://github.com/tateisu) | | | | +|
[Akhil-CM](https://github.com/Akhil-CM) |
[andypiper](https://github.com/andypiper) |
[avanderberg](https://github.com/avanderberg) |
[chr15m](https://github.com/chr15m) | +|
[CyberXZT](https://github.com/CyberXZT) |
[dbrandonjohnson](https://github.com/dbrandonjohnson) |
[dchecks](https://github.com/dchecks) |
[fats](https://github.com/fats) | +|
[Galliver7](https://github.com/Galliver7) |
[Hegghammer](https://github.com/Hegghammer) |
[jamesandariese](https://github.com/jamesandariese) |
[jknowles](https://github.com/jknowles) | +|
[KentBrockman](https://github.com/KentBrockman) |
[konishi-t](https://github.com/konishi-t) |
[marcdw1289](https://github.com/marcdw1289) |
[matmoly](https://github.com/matmoly) | +|
[maxtruxa](https://github.com/maxtruxa) |
[mu88](https://github.com/mu88) |
[saarantras](https://github.com/saarantras) |
[sif](https://github.com/sif) | +|
[taskcruncher](https://github.com/taskcruncher) |
[tateisu](https://github.com/tateisu) | | | # Community diff --git a/packages/tools/sponsors.json b/packages/tools/sponsors.json index 3d2e74fde..0129a30d5 100644 --- a/packages/tools/sponsors.json +++ b/packages/tools/sponsors.json @@ -64,7 +64,7 @@ "name": "jamesandariese" }, { - "name": " Akhil-CM" + "name": "Akhil-CM" } ], "orgs": [ diff --git a/packages/tools/utils/loadSponsors.ts b/packages/tools/utils/loadSponsors.ts index 1aa6e5f1b..8073d4265 100644 --- a/packages/tools/utils/loadSponsors.ts +++ b/packages/tools/utils/loadSponsors.ts @@ -39,7 +39,11 @@ export const loadSponsors = async (): Promise => { }, }); - if (!userResponse.ok) throw new Error(await userResponse.text()); + if (!userResponse.ok) { + const apiErrorMessage = await userResponse.text(); + throw new Error(`Could not get user: "${ghSponsor.name}": ${apiErrorMessage}`); + } + const user = await userResponse.json(); ghSponsor.id = user.id; }