Skip to content

Commit

Permalink
fix: fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
btrn11 committed Jan 23, 2025
1 parent 45d9d7f commit 1a44514
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/package/packagePushUpgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class PackagePushUpgrade {
packageVersionId: string,
scheduleTime: string,
orgList: string[]
): Promise<PackagePushScheduleResult | (void | SfError<AnyJson>)> {
): Promise<PackagePushScheduleResult | SfError<AnyJson>> {
try {
const packagePushRequestBody = {
PackageVersionId: packageVersionId,
Expand Down Expand Up @@ -166,7 +166,7 @@ export class PackagePushUpgrade {
const jobErrors = await job.getFailedResults();

if (jobErrors.length > 0) {
const error: void | SfError<AnyJson> = await this.writeJobErrorsToFile(pushRequestResult.id, jobErrors);
const error: SfError<AnyJson> = await this.writeJobErrorsToFile(pushRequestResult.id, jobErrors);
return error;
}

Expand All @@ -192,7 +192,7 @@ export class PackagePushUpgrade {
private static async writeJobErrorsToFile(
pushRequestId: string,
jobErrors: IngestJobV2FailedResults<Schema>
): Promise<void | SfError<AnyJson>> {
): Promise<SfError<AnyJson>> {
const outputDir = path.join(process.cwd(), 'job_errors');
const outputFile = path.join(outputDir, `push_request_${pushRequestId}_errors.log`);

Expand Down

0 comments on commit 1a44514

Please sign in to comment.