Skip to content
Snippets Groups Projects
Commit bcdc2f93 authored by olli's avatar olli Committed by Eli Stone
Browse files

Issue #3219878 by olli: Exceptions printed to all users

parent 392d38d8
No related branches found
No related tags found
No related merge requests found
Pipeline #34126 failed
......@@ -105,7 +105,7 @@ trait GraphQLTemplateTrait {
);
}
if ($queryResult->errors) {
if ($this->env->isDebug() && $queryResult->errors) {
print('<ul class="graphql-twig-errors">');
printf('<li>'.$this->t('Query').': <code>%s</code></li>', $query);
printf('<li>'.$this->t('Arguments').': <code>%s</code></li>', json_encode($arguments));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment