File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,13 @@ export class ApolloError extends ExtendableError {
3434 _showPath : boolean = false ;
3535
3636 constructor ( name : string , config : ErrorConfig ) {
37- super ( ( arguments [ 1 ] && arguments [ 1 ] . message ) || '' ) ;
37+ super ( ( arguments [ 2 ] && arguments [ 2 ] . message ) || '' ) ;
3838
39- const t = ( arguments [ 1 ] && arguments [ 1 ] . time_thrown ) || ( new Date ( ) ) . toISOString ( ) ;
40- const m = ( arguments [ 1 ] && arguments [ 1 ] . message ) || '' ;
41- const configData = ( arguments [ 1 ] && arguments [ 1 ] . data ) || { } ;
39+ const t = ( arguments [ 2 ] && arguments [ 2 ] . time_thrown ) || ( new Date ( ) ) . toISOString ( ) ;
40+ const m = ( arguments [ 2 ] && arguments [ 2 ] . message ) || '' ;
41+ const configData = ( arguments [ 2 ] && arguments [ 2 ] . data ) || { } ;
4242 const d = { ...this . data , ...configData } ;
43- const opts = ( ( arguments [ 1 ] && arguments [ 1 ] . options ) || { } ) ;
43+ const opts = ( ( arguments [ 2 ] && arguments [ 2 ] . options ) || { } ) ;
4444
4545
4646 this . name = name ;
You can’t perform that action at this time.
0 commit comments