mirror of
https://github.com/chaos-zhu/easynode.git
synced 2026-10-07 14:58:08 +08:00
feat: 优化server端抛错信息
This commit is contained in:
@@ -149,9 +149,8 @@ async function getMobileSshConnection({ request, res }) {
|
||||
|
||||
return res.success({ data, msg: 'success' })
|
||||
} catch (error) {
|
||||
// Detail goes to the server log; the wire response stays generic.
|
||||
logger.error('getMobileSshConnection error:', error.message)
|
||||
return res.fail({ msg: 'mobile ssh connection failed' })
|
||||
return res.fail({ msg: error.message || 'mobile ssh connection failed' })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user