We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be8ba3c commit f559deaCopy full SHA for f559dea
src/commands/org/resume/scratch.ts
@@ -75,7 +75,7 @@ export default class OrgResumeScratch extends SfCommand<ScratchCreateResponse> {
75
this.logSuccess(messages.getMessage('success'));
76
return { username, scratchOrgInfo, authFields, warnings, orgId: authFields?.orgId };
77
} catch (e) {
78
- if (cache.keys() && (e as Error).name === 'CacheMissError') {
+ if (cache.keys() && e instanceof Error && e.name === 'CacheMissError') {
79
// we have something in the cache, but it didn't match what the user passed in
80
throw messages.createError('error.jobIdMismatch', [jobId]);
81
} else {
0 commit comments