File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/@apphosting/adapter-angular Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @apphosting/adapter-angular" ,
3- "version" : " 17.2.16 " ,
3+ "version" : " 17.2.17 " ,
44 "main" : " dist/index.js" ,
55 "description" : " Experimental addon to the Firebase CLI to add web framework support" ,
66 "repository" : {
Original file line number Diff line number Diff line change @@ -148,7 +148,12 @@ export function populateOutputBundleOptions(outputPaths: OutputPaths): OutputBun
148148export function parseOutputBundleOptions ( buildOutput : string ) : OutputBundleOptions {
149149 const strippedManifest = extractManifestOutput ( buildOutput ) ;
150150 // TODO: add functional tests that test this flow
151- const parsedManifest = JSON . parse ( strippedManifest . replace ( / [ \r \n ] + / g, "" ) ) as string ;
151+ let parsedManifest ;
152+ try {
153+ parsedManifest = JSON . parse ( strippedManifest . replace ( / [ \r \n ] + / g, "" ) ) as string ;
154+ } catch ( error ) {
155+ throw new Error ( `Failed to parse build output manifest: ${ error } ` ) ;
156+ }
152157 const manifest = buildManifestSchema . parse ( parsedManifest ) ;
153158 if ( manifest [ "errors" ] . length > 0 ) {
154159 // errors when extracting manifest
You can’t perform that action at this time.
0 commit comments