mirror of
https://github.com/aljazceru/landscape-template.git
synced 2025-12-18 06:44:22 +01:00
logs
This commit is contained in:
@@ -55,6 +55,7 @@ const loginHandler = async (req, res) => {
|
||||
.json({ status: "OK" })
|
||||
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
return res.status(400).json({ status: 'ERROR', reason: 'Invalid User Token' })
|
||||
}
|
||||
}
|
||||
@@ -126,6 +127,7 @@ const loginHandler = async (req, res) => {
|
||||
return res.status(200).json({ status: "OK" })
|
||||
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
return res.status(400).json({ status: 'ERROR', reason: 'Unexpected error happened, please try again' })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user