return this.authHttp.post(url, normalizedComment)
.pipe(
- map(data => this.extractVideoComment(data['comment'])),
- catchError(this.restExtractor.handleError)
+ map(data => this.extractVideoComment(data['comment'])),
+ catchError(err => this.restExtractor.handleError(err))
)
}
return this.authHttp.post(url, normalizedComment)
.pipe(
map(data => this.extractVideoComment(data[ 'comment' ])),
- catchError(this.restExtractor.handleError)
+ catchError(err => this.restExtractor.handleError(err))
)
}
.get(url, { params })
.pipe(
map(this.extractVideoComments),
- catchError((res) => this.restExtractor.handleError(res))
+ catchError(err => this.restExtractor.handleError(err))
)
}
.get(url)
.pipe(
map(tree => this.extractVideoCommentTree(tree as VideoCommentThreadTree)),
- catchError((res) => this.restExtractor.handleError(res))
+ catchError(err => this.restExtractor.handleError(err))
)
}
.delete(url)
.pipe(
map(this.restExtractor.extractDataBool),
- catchError((res) => this.restExtractor.handleError(res))
+ catchError(err => this.restExtractor.handleError(err))
)
}