Unhandled exception in WorkspaceDeleteHandler#moveFileToTrash
#11908
Labels
hackathon
issues reserved for hackatons
WorkspaceDeleteHandler#moveFileToTrash
#11908
Blocked for Hackathon
see:
theia/packages/workspace/src/browser/workspace-delete-handler.ts
Line 170 in 909f410
Consider using 'await' for the promise inside this 'try' or replace it with 'Promise.prototype.catch(...)' usage.
An exception (including reject) thrown by a promise will not be caught by a nesting try block, due to the asynchronous nature of execution. Instead, use catch method of Promise or wrap it inside await expression.
This rule reports try-catch statements containing nothing else but call(s) to a function returning a Promise (thus it’s less likely that catch is intended to catch something else than Promise rejection).
@marcdumais-work Do you want to use this for the Hackathon and add details?
The text was updated successfully, but these errors were encountered: