Skip to content

Commit f559dea

Browse files
chore: code review
1 parent be8ba3c commit f559dea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/org/resume/scratch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default class OrgResumeScratch extends SfCommand<ScratchCreateResponse> {
7575
this.logSuccess(messages.getMessage('success'));
7676
return { username, scratchOrgInfo, authFields, warnings, orgId: authFields?.orgId };
7777
} catch (e) {
78-
if (cache.keys() && (e as Error).name === 'CacheMissError') {
78+
if (cache.keys() && e instanceof Error && e.name === 'CacheMissError') {
7979
// we have something in the cache, but it didn't match what the user passed in
8080
throw messages.createError('error.jobIdMismatch', [jobId]);
8181
} else {

0 commit comments

Comments
 (0)