We have errors showing up in some pages. These errors must be shown only for admin users.
I changed the "Error message to display" as none. Still the errors are showing up. I copied status-messages.html.twig to my theme and tried to give is_admin. That is giving me error. Any help would be appreciated.
{% block messages %}
{% if message_list is not empty %}
{{ attach_library('bartik/messages') }}
<div class="messages__wrapper layout-container">
{{ parent() }}
</div>
{% endif %}
{% endblock messages %}