File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 - uses : actions/checkout@v4
1919 - run : docker pull adminer
2020 - run : docker pull postgres
21+ - run : npm i -g @angular/cli@18 @loopback/cli@6 @nestjs/cli@11
2122 - run : npm ci
2223 - run : npm run build
2324 - run : npm run test
Original file line number Diff line number Diff line change @@ -20,17 +20,23 @@ export abstract class JsonUtilities {
2020 return json5 . parse ( value ) ;
2121 }
2222 catch ( error ) {
23- throw new Error ( `Could not parse value:\n ${ this . stringify ( value ) } \n${ error } ` ) ;
23+ throw new Error ( `Could not parse value:\n ${ value } \n${ error } ` ) ;
2424 }
2525 }
2626
2727 /**
2828 * Stringifies the given value into a json string.
2929 * @param value - The value to stringify.
3030 * @returns The json string, formatted with 4 spaces.
31+ * @throws
3132 */
3233 static stringify < T > ( value : T ) : string {
33- return JSON . stringify ( value , undefined , this . indent ) ;
34+ try {
35+ return JSON . stringify ( value , undefined , this . indent ) ;
36+ }
37+ catch ( error ) {
38+ throw new Error ( `Could not stringify value:\n ${ value } \n${ error } ` ) ;
39+ }
3440 }
3541
3642 /**
You can’t perform that action at this time.
0 commit comments