Skip to content

Commit f7caecc

Browse files
committed
Put in a cleaner, generic error message
1 parent 357af60 commit f7caecc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/controller/registry-org.controller/registry-org.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async function getAllOrgs (req, res, next) {
4848
if (error.message && error.message.includes('Unknown Org type requested')) {
4949
return res.status(400).json({ message: error.message })
5050
}
51-
return res.status(500).json({ message: error.message })
51+
return res.status(500).json({ message: 'Error fetching orgs' })
5252
}
5353

5454
logger.info({ uuid: req.ctx.uuid, message: 'The orgs were sent to the user.' })

0 commit comments

Comments
 (0)