Skip to content

Commit aa12785

Browse files
committed
Return all graphql errors to client
1 parent 43cab17 commit aa12785

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cylc/flow/network/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,9 @@ def graphql(
417417
)
418418
if executed.errors:
419419
for error in executed.errors:
420-
LOG.warning(error)
420+
LOG.error(f"GraphQL: {error}")
421421
if not executed.data:
422-
raise Exception(executed.errors[0])
422+
raise Exception(*executed.errors)
423423
return executed.data
424424

425425
# UIServer Data Commands

0 commit comments

Comments
 (0)