Skip to content

Commit

Permalink
Move error formatting utils public API
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalp committed Aug 12, 2019
1 parent cbd9a2f commit 6f8581a
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions ariadne/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
from .executable_schema import make_executable_schema
from .extensions import ExtensionManager
from .file_uploads import combine_multipart_data, upload_scalar
from .format_error import format_error, get_error_extension
from .format_error import (
format_error,
get_error_extension,
get_formatted_context,
get_formatted_traceback,
)
from .graphql import graphql, graphql_sync, subscribe
from .interfaces import InterfaceType
from .load_schema import load_schema_from_path
Expand All @@ -19,7 +24,12 @@
from .subscriptions import SubscriptionType
from .types import SchemaBindable
from .unions import UnionType
from .utils import convert_camel_case_to_snake, convert_kwargs_to_snake_case, gql
from .utils import (
convert_camel_case_to_snake,
convert_kwargs_to_snake_case,
gql,
unwrap_graphql_error,
)

__all__ = [
"EnumType",
Expand All @@ -40,6 +50,8 @@
"fallback_resolvers",
"format_error",
"get_error_extension",
"get_formatted_context",
"get_formatted_traceback",
"gql",
"graphql",
"graphql_sync",
Expand All @@ -49,5 +61,6 @@
"resolve_to",
"snake_case_fallback_resolvers",
"subscribe",
"unwrap_graphql_error",
"upload_scalar",
]

0 comments on commit 6f8581a

Please sign in to comment.