Write /edit endpoint error to console
| @@ -1046,9 +1046,8 @@ router.post('/edit', validateAvatarUrlMiddleware, async function (request, respo | ||
| 1046 | 1046 | } |
| 1047 | 1047 | |
| 1048 | 1048 | return response.sendStatus(200); |
| 1049 | - } | |
| 1049 | + } catch (err) { | |
| 1050 | - catch { | |
| 1050 | + console.error('An error occurred, character edit invalidated.', err); | |
| 1051 | - console.error('An error occurred, character edit invalidated.'); | |
| 1052 | 1051 | } |
| 1053 | 1052 | }); |
| 1054 | 1053 | |