Skip to content

Commit

Permalink
indivual controller error msg update
Browse files Browse the repository at this point in the history
  • Loading branch information
Z4nR committed May 13, 2024
1 parent 206a3f0 commit 91b028a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/controllers/individual-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ module.exports = {
res.status(202).send(data);
} catch (error) {
console.log(error);
res.status(500).send({ message: 'Terjadi Kesalahan pada Server' });
res
.status(500)
.send({ message: 'Terjadi Kesalahan pada Server', status: 500 });
}
},
};

0 comments on commit 91b028a

Please sign in to comment.