Skip to content

Commit 5470f10

Browse files
committed
[odmlparser] Clarify run validation message
1 parent 9f41471 commit 5470f10

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

odml/tools/odmlparser.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def write_file(self, odml_document, filename):
7171
report = validation.report()
7272
if report:
7373
msg += "The saved Document contains formal issues."
74-
msg += " Run 'odml.Validation' to resolve them.\n%s" % report
74+
msg += " Run 'odml.validation.Validation(doc)' to resolve them.\n%s" % report
7575
warnings.warn(msg)
7676

7777
with open(filename, 'w') as file:
@@ -165,7 +165,7 @@ def _validation_warning(self):
165165
report = Validation(self.doc).report()
166166
if report:
167167
msg = "The loaded Document contains formal issues."
168-
msg += "Run 'odml.Validation' to resolve them.\n%s" % report
168+
msg += "Run 'odml.validation.Validation(doc)' to resolve them.\n%s" % report
169169
warnings.warn(msg)
170170

171171
def from_file(self, file, doc_format=None):
@@ -245,7 +245,7 @@ def from_file(self, file, doc_format=None):
245245
report = Validation(doc).report()
246246
if report:
247247
msg = "The loaded Document contains formal issues."
248-
msg += "Run 'odml.Validation' to resolve them.\n%s" % report
248+
msg += "Run 'odml.validation.Validation(doc)' to resolve them.\n%s" % report
249249
warnings.warn(msg)
250250

251251
return self.doc
@@ -314,7 +314,7 @@ def from_string(self, string, doc_format=None):
314314
report = Validation(doc).report()
315315
if report:
316316
msg = "The loaded Document contains formal issues."
317-
msg += "Run 'odml.Validation' to resolve them.\n%s" % report
317+
msg += "Run 'odml.validation.Validation(doc)' to resolve them.\n%s" % report
318318
warnings.warn(msg)
319319

320320
return self.doc

0 commit comments

Comments
 (0)