Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.backend.python
Commits
81ac5f7f
Commit
81ac5f7f
authored
Jul 12, 2019
by
Samuel GAIST
Browse files
[dataformat] Add more information to type method error if not resolved
parent
8f372b5e
Pipeline
#31809
passed with stage
in 10 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/backend/python/dataformat.py
View file @
81ac5f7f
...
@@ -317,7 +317,11 @@ class DataFormat(object):
...
@@ -317,7 +317,11 @@ class DataFormat(object):
"""
"""
if
self
.
resolved
is
None
:
if
self
.
resolved
is
None
:
raise
RuntimeError
(
"Cannot prototype while not properly initialized"
)
raise
RuntimeError
(
"Cannot prototype while not properly initialized
\n
{}"
.
format
(
self
.
errors
)
)
classname
=
re
.
sub
(
r
"[-/]"
,
"_"
,
self
.
name
)
classname
=
re
.
sub
(
r
"[-/]"
,
"_"
,
self
.
name
)
if
not
isinstance
(
classname
,
str
):
if
not
isinstance
(
classname
,
str
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment