File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
6
import { toErrorMessage } from 'vs/base/common/errorMessage' ;
7
- import { getErrorMessage } from 'vs/base/common/errors' ;
7
+ import { ErrorNoTelemetry , getErrorMessage } from 'vs/base/common/errors' ;
8
8
import { mark } from 'vs/base/common/performance' ;
9
9
10
10
class MissingStoresError extends Error {
@@ -125,8 +125,8 @@ export class IndexedDB {
125
125
c ( request . result ) ;
126
126
}
127
127
} ;
128
- transaction . onerror = ( ) => e ( transaction . error ) ;
129
- transaction . onabort = ( ) => e ( transaction . error ) ;
128
+ transaction . onerror = ( ) => e ( transaction . error ? ErrorNoTelemetry . fromError ( transaction . error ) : new ErrorNoTelemetry ( 'unknown error' ) ) ;
129
+ transaction . onabort = ( ) => e ( transaction . error ? ErrorNoTelemetry . fromError ( transaction . error ) : new ErrorNoTelemetry ( 'unknown error' ) ) ;
130
130
const request = dbRequestFn ( transaction . objectStore ( store ) ) ;
131
131
} ) . finally ( ( ) => this . pendingTransactions . splice ( this . pendingTransactions . indexOf ( transaction ) , 1 ) ) ;
132
132
}
You can’t perform that action at this time.
0 commit comments