HHH-13673 Cryptic error when providing import.sql file without a terminal char at the end of each line
This commit is contained in:
parent
8f68a3573e
commit
f39d96f9fa
|
@ -40,6 +40,10 @@ options {
|
|||
|
||||
public void throwExceptionIfErrorOccurred() {
|
||||
if ( errorHandler.hasErrors() ) {
|
||||
String errorMessage = errorHandler.getErrorMessage();
|
||||
if(errorMessage.contains("expecting STMT_END")) {
|
||||
throw new StatementParserException( "Import script Sql statements must terminate with a ';' char" );
|
||||
}
|
||||
throw new StatementParserException( errorHandler.getErrorMessage() );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue