Skip to content

Commit

Permalink
fix(upload): fix typo (#2173)
Browse files Browse the repository at this point in the history
Fix typo in exception if no HttpClient provided
  • Loading branch information
tibing-old-email authored and vthinkxie committed Sep 21, 2018
1 parent 69ff576 commit 69c5210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/upload/nz-upload-btn.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export class NzUploadBtnComponent implements OnInit, OnChanges, OnDestroy {
// endregion
constructor(@Optional() private http: HttpClient, private el: ElementRef, private updateHostClassService: NzUpdateHostClassService, private cd: ChangeDetectorRef) {
if (!http) {
throw new Error(`Not found 'HttpClient', You can import 'HttpClientModel' in your root module.`);
throw new Error(`Not found 'HttpClient', You can import 'HttpClientModule' in your root module.`);
}
}

Expand Down

0 comments on commit 69c5210

Please sign in to comment.