Skip to content

Commit

Permalink
fix(validate): remove trailing braces of an escaped string
Browse files Browse the repository at this point in the history
  • Loading branch information
azlam-abdulsalam committed Jul 17, 2023
1 parent a28534f commit 4ef124d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export default class ValidateAgainstOrg extends SfpowerscriptsCommand {
} catch (error) {
if (error instanceof ValidateError) {
validateResult = error.data;
} else SFPLogger.log(error.message);
}

SFPStatsSender.logCount('validate.failed', tags);

Expand Down
6 changes: 3 additions & 3 deletions packages/sfpowerscripts-cli/src/impl/validate/ValidateImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ export default class ValidateImpl implements PostDeployHook, PreDeployHook {
);
return;
} else if (error instanceof ValidateError)
SFPLogger.log(`Error: ${error}`, LoggerLevel.DEBUG);
else SFPLogger.log(`Error: ${error}}`, LoggerLevel.ERROR);
SFPLogger.log(`Validation failed due to : ${error}`, LoggerLevel.DEBUG);
else SFPLogger.log(`Failure Reason: ${error}`, LoggerLevel.ERROR);
throw error;
} finally {
await this.handleScratchOrgStatus(
Expand Down Expand Up @@ -458,7 +458,7 @@ export default class ValidateImpl implements PostDeployHook, PreDeployHook {
const { generatedPackages, failedPackages } = await buildImpl.exec();

if (failedPackages.length > 0)
throw new Error(`Failed to create source packages ${failedPackages}`);
throw new Error(`Failed to create source1 packages ${failedPackages}`);

if (generatedPackages.length === 0) {
throw new Error(
Expand Down

0 comments on commit 4ef124d

Please sign in to comment.