Skip to content

Commit a59f59b

Browse files
committed
debt - do not reject without reason
1 parent 8b53cb6 commit a59f59b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/workbench/contrib/files/browser/fileImportExport.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import { listenStream } from 'vs/base/common/stream';
3131
import { DisposableStore, toDisposable } from 'vs/base/common/lifecycle';
3232
import { once } from 'vs/base/common/functional';
3333
import { coalesce } from 'vs/base/common/arrays';
34+
import { canceled } from 'vs/base/common/errors';
3435

3536
//#region Browser File Upload (drag and drop, input element)
3637

@@ -686,7 +687,7 @@ export class FileDownload {
686687

687688
disposables.add(once(token.onCancellationRequested)(() => {
688689
disposables.dispose();
689-
reject();
690+
reject(canceled());
690691
}));
691692

692693
listenStream(sourceStream, {

0 commit comments

Comments
 (0)