From 4a5f1e050e67de373b42e50e79f3e8ecbd33e135 Mon Sep 17 00:00:00 2001 From: Matt Seddon Date: Mon, 1 May 2023 10:35:02 +1000 Subject: [PATCH] remove custom error handling (use offer to show error in output channel) --- extension/src/experiments/commands/index.ts | 28 ++++++++------------- 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/extension/src/experiments/commands/index.ts b/extension/src/experiments/commands/index.ts index dc0fdff5fc..fac0b50f0b 100644 --- a/extension/src/experiments/commands/index.ts +++ b/extension/src/experiments/commands/index.ts @@ -62,25 +62,17 @@ export const getPushExperimentCommand = const remainingProgress = 75 - try { - const stdout = await internalCommands.executeCommand( - AvailableCommands.EXP_PUSH, - dvcRoot, - id - ) + const stdout = await internalCommands.executeCommand( + AvailableCommands.EXP_PUSH, + dvcRoot, + id + ) - progress.report({ - increment: remainingProgress, - message: convertUrlTextToLink(stdout) - }) + progress.report({ + increment: remainingProgress, + message: convertUrlTextToLink(stdout) + }) - return Toast.delayProgressClosing(15000) - } catch (error: unknown) { - progress.report({ - increment: remainingProgress, - message: (error as Error)?.message || 'an unexpected error occurred' - }) - } - return Toast.delayProgressClosing(60000) + return Toast.delayProgressClosing(15000) }) }