build: improve error message for upgrade test helper (#27706)
build: improve error message for upgrade test helper (#27706)

Currently whenever the upgrade test helper fails to load a given AngularJS version, the error that will be rejected is technically not an error because the `onerror` callback is not returning an error, but an "ErrorEvent".

Since that `ErrorEvent` is basically just rejected, browsers will print
the error as followed:

```
Failed: [object Event]
```

This is not helpful at all and also implies that there _might_ be more
information hidden within the `Event` instance. Unfortunately that's not
the case (at least on browsers we test against) and the logic to extract
the data from the event would be not worth the effort, we just return a
simple custom `Error` that won't imply that there is more information
hidden.

PR Close #27706

petebacondarwin/angular,Toxicable/angular,IgorMinar/angular,mlaval/angular,alxhub/angular,juristr/angular,petebacondarwin/angular,blesh/angular,brandonroberts/angular,gnomeontherun/angular,wKoza/angular,gdi2290/angular,JiaLiPassion/angular,Brocco/angular,StephenFluin/angular,alexeagle/angular,matsko/angular,ValtoFrameworks/Angular-2,vikerman/angular,mprobst/angular,StephenFluin/angular,IgorMinar/angular,shairez/angular,gdi2290/angular,manekinekko/angular,angular-indonesia/angular,IdeaBlade/angular,ultrasonicsoft/angular,ValtoFrameworks/Angular-2,manekinekko/angular,StephenFluin/angular,sarunint/angular,gnomeontherun/angular,IgorMinar/angular,ultrasonicsoft/angular,petebacondarwin/angular,shairez/angular,IdeaBlade/angular,gnomeontherun/angular,ocombe/angular,gkalpak/angular,Brocco/angular,juristr/angular,Toxicable/angular,Brocco/angular,ultrasonicsoft/angular,jasonaden/angular,gdi2290/angular,mhevery/angular,angular/angular,snaptech/angular,hansl/angular,jasonaden/angular,brandonroberts/angular,Brocco/angular,IgorMinar/angular,ValtoFrameworks/Angular-2,filipesilva/angular,IdeaBlade/angular,matsko/angular,shairez/angular,mlaval/angular,wKoza/angular,Toxicable/angular,sarunint/angular,jasonaden/angular,snaptech/angular,angular/angular,brandonroberts/angular,ultrasonicsoft/angular,angular-indonesia/angular,alexeagle/angular,angular-indonesia/angular,mhevery/angular,filipesilva/angular,gnomeontherun/angular,mhevery/angular,gdi2290/angular,manekinekko/angular,ocombe/angular,juristr/angular,petebacondarwin/angular,JiaLiPassion/angular,filipesilva/angular,sarunint/angular,angular/angular,wKoza/angular,ultrasonicsoft/angular,alxhub/angular,juristr/angular,petebacondarwin/angular,juristr/angular,StephenFluin/angular,hansl/angular,juristr/angular,sarunint/angular,hansl/angular,angular/angular,ultrasonicsoft/angular,vikerman/angular,gdi2290/angular,mprobst/angular,IdeaBlade/angular,mprobst/angular,gkalpak/angular,blesh/angular,mgechev/angular,petebacondarwin/angular,shairez/angular,filipesilva/angular,sarunint/angular,snaptech/angular,gdi2290/angular,blesh/angular,alexeagle/angular,IgorMinar/angular,ocombe/angular,blesh/angular,jasonaden/angular,matsko/angular,mlaval/angular,gkalpak/angular,mlaval/angular,ocombe/angular,snaptech/angular,hansl/angular,alxhub/angular,wKoza/angular,alxhub/angular,ValtoFrameworks/Angular-2,Toxicable/angular,IdeaBlade/angular,filipesilva/angular,alexeagle/angular,jasonaden/angular,alexeagle/angular,vikerman/angular,ocombe/angular,mhevery/angular,IgorMinar/angular,shairez/angular,mprobst/angular,blesh/angular,manekinekko/angular,vikerman/angular,wKoza/angular,mhevery/angular,snaptech/angular,hansl/angular,ValtoFrameworks/Angular-2,mgechev/angular,brandonroberts/angular,wKoza/angular,angular-indonesia/angular,gkalpak/angular,Toxicable/angular,hansl/angular,brandonroberts/angular,ocombe/angular,matsko/angular,mhevery/angular,mgechev/angular,JiaLiPassion/angular,Brocco/angular,sarunint/angular,vikerman/angular,vikerman/angular,snaptech/angular,Brocco/angular,Toxicable/angular,StephenFluin/angular,mgechev/angular,JiaLiPassion/angular,mprobst/angular,alxhub/angular,mprobst/angular,manekinekko/angular,alexeagle/angular,matsko/angular,mgechev/angular,jasonaden/angular,manekinekko/angular,mlaval/angular,brandonroberts/angular