mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-04-04 15:56:16 +02:00
fix(security): sanitize verbose error in system update service
This commit is contained in:
parent
07348c293e
commit
9d7e7cbf4c
|
|
@ -47,10 +47,10 @@ export class SystemUpdateService {
|
||||||
message: 'System update initiated. The admin container will restart during the process.',
|
message: 'System update initiated. The admin container will restart during the process.',
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error('[SystemUpdateService]: Failed to request system update:', error)
|
logger.error({ err: error }, '[SystemUpdateService] Failed to request system update')
|
||||||
return {
|
return {
|
||||||
success: false,
|
success: false,
|
||||||
message: `Failed to request update: ${error.message}`,
|
message: 'Failed to request system update. Check server logs for details.',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user