diff options
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/plugins.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/controllers/api/plugins.ts b/server/controllers/api/plugins.ts index 114cc49b6..bb410e891 100644 --- a/server/controllers/api/plugins.ts +++ b/server/controllers/api/plugins.ts | |||
@@ -180,5 +180,11 @@ async function listAvailablePlugins (req: express.Request, res: express.Response | |||
180 | 180 | ||
181 | const resultList = await listAvailablePluginsFromIndex(query) | 181 | const resultList = await listAvailablePluginsFromIndex(query) |
182 | 182 | ||
183 | if (!resultList) { | ||
184 | return res.status(503) | ||
185 | .json({ error: 'Plugin index unavailable. Please retry later' }) | ||
186 | .end() | ||
187 | } | ||
188 | |||
183 | return res.json(resultList) | 189 | return res.json(resultList) |
184 | } | 190 | } |