##// END OF EJS Templates
Change "Non Expected" to "Unexpected" in exception messages.
David Toneian -
Show More
@@ -581,7 +581,9 b' class EmbeddedSphinxShell(object):'
581 s += "<<<" + ("-" * 73)
581 s += "<<<" + ("-" * 73)
582 logger.warning(s)
582 logger.warning(s)
583 if self.warning_is_error:
583 if self.warning_is_error:
584 raise RuntimeError('Non Expected exception in `{}` line {}'.format(filename, lineno))
584 raise RuntimeError(
585 "Unexpected exception in `{}` line {}".format(filename, lineno)
586 )
585
587
586 # output any warning raised during execution to stdout
588 # output any warning raised during execution to stdout
587 # unless :okwarning: has been specified.
589 # unless :okwarning: has been specified.
@@ -597,7 +599,9 b' class EmbeddedSphinxShell(object):'
597 s += "<<<" + ("-" * 73)
599 s += "<<<" + ("-" * 73)
598 logger.warning(s)
600 logger.warning(s)
599 if self.warning_is_error:
601 if self.warning_is_error:
600 raise RuntimeError('Non Expected warning in `{}` line {}'.format(filename, lineno))
602 raise RuntimeError(
603 "Unexpected warning in `{}` line {}".format(filename, lineno)
604 )
601
605
602 self.clear_cout()
606 self.clear_cout()
603 return (ret, input_lines, processed_output,
607 return (ret, input_lines, processed_output,
General Comments 0
You need to be logged in to leave comments. Login now