Skip to content

Commit

Permalink
rephrase client error message
Browse files Browse the repository at this point in the history
  • Loading branch information
0oM4R committed Oct 24, 2024
1 parent 0ed4767 commit 583212d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/grid_client/src/high_level/twinDeploymentHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ class TwinDeploymentHandler {
}
try {
const kycStatus = await this.kyc.status();
if (kycStatus !== KycStatus.verified) throw new ValidationError("KYC is not verified.");
if (kycStatus !== KycStatus.verified)
throw new ValidationError(
"Your account is not verified. Please sign into Threefold Dashboard or Connect mobile app to complete your KYC verification.",
); //TODO add kyc manula linke
return await this.tfclient.contracts.createName({ name });
} catch (e) {
//TODO ERROR should be handled in tfchain
Expand Down Expand Up @@ -507,7 +510,10 @@ class TwinDeploymentHandler {

async handle(twinDeployments: TwinDeployment[]) {
const kycStatus = await this.kyc.status();
if (kycStatus !== KycStatus.verified) throw new ValidationError("KYC is not verified.");
if (kycStatus !== KycStatus.verified)
throw new ValidationError(
"Your account is not verified. Please sign into Threefold Dashboard or Connect mobile app to complete your KYC verification.",
); // TODO add KYC manual link.
events.emit("logs", "Merging workloads");
twinDeployments = await this.merge(twinDeployments);
await this.validate(twinDeployments);
Expand Down

0 comments on commit 583212d

Please sign in to comment.