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 {
34
34
_showPath : boolean = false ;
35
35
36
36
constructor ( name : string , config : ErrorConfig ) {
37
- super ( ( arguments [ 1 ] && arguments [ 1 ] . message ) || '' ) ;
37
+ super ( ( arguments [ 2 ] && arguments [ 2 ] . message ) || '' ) ;
38
38
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 ) || { } ;
42
42
const d = { ...this . data , ...configData } ;
43
- const opts = ( ( arguments [ 1 ] && arguments [ 1 ] . options ) || { } ) ;
43
+ const opts = ( ( arguments [ 2 ] && arguments [ 2 ] . options ) || { } ) ;
44
44
45
45
46
46
this . name = name ;
You can’t perform that action at this time.
0 commit comments