79383341

Date: 2025-01-24 05:51:18
Score: 1
Natty:
Report link
<% if locals.msg { %>
  <h2><%=msg %></h2>
  <% } else {%>
  <h2>There is no messages</h2>
  <% } %>

You need use locals when the message is empty because ejs treat it as a variable. So that is why you get server 500 error.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ritobroto Das