mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-04-04 07:46:16 +02:00
fix(security): sanitize verbose errors in collection update service
This commit is contained in:
parent
9d7e7cbf4c
commit
d0ef6c46d3
|
|
@ -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.',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user