fix(security): sanitize verbose errors in collection update service

This commit is contained in:
LuisMIguelFurlanettoSousa 2026-03-25 21:32:48 -03:00
parent 9d7e7cbf4c
commit d0ef6c46d3

View File

@ -65,7 +65,7 @@ export class CollectionUpdateService {
return { return {
updates: [], updates: [],
checked_at: new Date().toISOString(), checked_at: new Date().toISOString(),
error: `Nomad API returned status ${error.response.status}`, error: 'Failed to check for content updates. The update service may be temporarily unavailable.',
} }
} }
const message = const message =
@ -74,7 +74,7 @@ export class CollectionUpdateService {
return { return {
updates: [], updates: [],
checked_at: new Date().toISOString(), checked_at: new Date().toISOString(),
error: `Failed to contact Nomad API: ${message}`, error: 'Failed to contact the update service. Please try again later.',
} }
} }
} }