File tree 2 files changed +4
-2
lines changed
frontend/packages/db-structure/src/parser/sql/postgresql
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,9 @@ export const processor: Processor = async (sql: string) => {
33
33
const { parse_tree, error : parseError } = await parse ( chunk )
34
34
35
35
if ( parse_tree . stmts . length > 0 && parseError !== null ) {
36
- throw new Error ( 'UnexpectedCondition' )
36
+ throw new Error (
37
+ 'UnexpectedCondition. parse_tree.stmts.length > 0 && parseError !== null' ,
38
+ )
37
39
}
38
40
39
41
if ( parseError !== null ) {
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export const processSQLInChunks = async (
70
70
} else if ( readOffset !== null ) {
71
71
const lineNumber = getLineNumber ( chunk , readOffset )
72
72
if ( lineNumber === null ) {
73
- throw new Error ( 'UnexpectedCondition' )
73
+ throw new Error ( 'UnexpectedCondition. lineNumber === null ' )
74
74
}
75
75
i += lineNumber
76
76
break
You can’t perform that action at this time.
0 commit comments