Skip to content

Commit

Permalink
fix: throw error when push upgrade fail
Browse files Browse the repository at this point in the history
  • Loading branch information
btrn11 committed Jan 22, 2025
1 parent 2a9cfb5 commit 08d5fbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/package/packagePushUpgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ export class PackagePushUpgrade {
.join('');

await fs.writeFile(outputFile, errorContent, 'utf-8');
throw new Error(`Push upgrade failed. Job errors have been written to file: ${outputFile}`);
} catch (error) {
throw new Error('Error when saving job errors to file' + (error as Error).message);
}
Expand Down

0 comments on commit 08d5fbb

Please sign in to comment.