Skip to content

Commit

Permalink
meaningful errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysVuika committed Oct 25, 2023
1 parent 74b0494 commit a0c9e7c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export class RenditionService {
clearInterval(intervalId);
return resolve(this.handleNodeRendition(nodeId, rendition.entry.content.mimeType, versionId));
}
}, () => reject(new Error('error')));
}, () => reject(new Error('Error geting version rendition')));
} else {
this.renditionsApi.getRendition(nodeId, renditionId).then((rendition: RenditionEntry) => {
const status: string = rendition.entry.status.toString();
Expand All @@ -210,11 +210,11 @@ export class RenditionService {
clearInterval(intervalId);
return resolve(this.handleNodeRendition(nodeId, renditionId, versionId));
}
}, () => reject(new Error('error')));
}, () => reject(new Error('Error getting rendition')));
}
} else {
clearInterval(intervalId);
return reject(new Error('error'));
return reject(new Error('Error getting rendition'));
}
}, this.TRY_TIMEOUT);
});
Expand Down

0 comments on commit a0c9e7c

Please sign in to comment.