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