refactor: remove redundant error in catch (#25478)

PR Close #25478
This commit is contained in:
Alan Agius
2018-08-14 15:34:51 +02:00
committed by Kara Erickson
parent 929334b0bf
commit b61dafaeac
15 changed files with 28 additions and 28 deletions

View File

@ -149,7 +149,7 @@ export class NgForOf<T> implements DoCheck {
if (!this._differ && value) {
try {
this._differ = this._differs.find(value).create(this.ngForTrackBy);
} catch (e) {
} catch {
throw new Error(
`Cannot find a differ supporting object '${value}' of type '${getTypeNameForDebugging(value)}'. NgFor only supports binding to Iterables such as Arrays.`);
}