File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
extensions/ql-vscode/src/view/results Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -223,9 +223,14 @@ export class ResultsApp extends React.Component<
223223 private getResultSets ( resultsInfo : ResultsInfo ) : readonly ResultSet [ ] {
224224 const parsedResultSets = resultsInfo . parsedResultSets ;
225225 const resultSet = parsedResultSets . resultSet ;
226- if ( ! resultSet . t ) {
226+ if (
227+ resultSet . t !== "InterpretedResultSet" &&
228+ resultSet . t !== "RawResultSet"
229+ ) {
227230 throw new Error (
228- 'Missing result set type. Should be either "InterpretedResultSet" or "RawResultSet".' ,
231+ `Invalid result set type. Should be either "InterpretedResultSet" or "RawResultSet", but got "${
232+ ( resultSet as { t : string } ) . t
233+ } ".`,
229234 ) ;
230235 }
231236 return [ resultSet ] ;
You can’t perform that action at this time.
0 commit comments