We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent335a9c7 commit055024eCopy full SHA for 055024e
src/actions/onStartup.ts
@@ -42,9 +42,9 @@ const onStartup = async (context: Context): Promise<void> => {
42
consttutorial=awaittutorialRes.json()
43
send({type:'START_TUTORIAL_FROM_URL',payload:{ tutorial}})
44
return
45
-}catch(e){
+}catch(e:any){
46
// on failure to load a tutorial url fallback to NEW
47
-console.log(`Failed to load tutorial from url${TUTORIAL_URL} with error "${e.message}"`)
+thrownewError(`Failed to load tutorial from url${TUTORIAL_URL} with error "${e.message}"`)
48
}
49
50
// NEW from start click
@@ -56,7 +56,7 @@ const onStartup = async (context: Context): Promise<void> => {
56
const{ position}=awaitcontext.onContinue(tutorial)
57
// communicate to client the tutorial & stepProgress state
58
send({type:'LOAD_STORED_TUTORIAL',payload:{ env, tutorial, position}})
59
60
consterror={
61
type:'UnknownError',
62
message:`Location: Editor startup\n\n${e.message}`,
src/actions/onTutorialConfigContinue.ts
@@ -25,7 +25,7 @@ const onTutorialConfigContinue = async (action: T.Action, context: Context): Pro
25
if(tutorialToContinue.config?.webhook){
26
setupWebhook(tutorialToContinue.config.webhook)
27
28
29
30
31
message:`Location: Editor tutorial continue config.\n\n${e.message}`,
src/services/hooks/utils/openFiles.ts
@@ -15,7 +15,7 @@ const openFiles = async (files: string[] = []): Promise<void> => {
15
constabsoluteFilePath=join(wr,filePath)
16
constdoc=awaitvscode.workspace.openTextDocument(absoluteFilePath)
17
awaitvscode.window.showTextDocument(doc,vscode.ViewColumn.One)
18
-}catch(error){
+}catch(error:any){
19
console.log(`Failed to open file${filePath}:${error.message}`)
20
21
src/services/hooks/utils/runCommands.ts
@@ -15,7 +15,7 @@ const runCommands = async (commands: string[] = []): Promise<void> => {
try{
result=awaitexec({ command})
console.log(result)
console.error(`Command failed:${error.message}`)
send({type:'COMMAND_FAIL',payload:{process:{ ...process,status:'FAIL'}}})
src/services/reset/index.ts
@@ -63,7 +63,7 @@ const reset = async ({ branch, hash }: Input): Promise<void> => {
63
awaitexec({
64
command:`git reset --hard${hash}`,
65
})
66
67
console.error('Error resetting')
68
console.error(error.message)
69
src/services/testRunner/index.ts
@@ -75,7 +75,7 @@ const createTestRunner = (data: TT.Tutorial, callbacks: Callbacks): ((params: an
75
76
logger('COMMAND',command)
77
result=awaitexec({ command,dir:testRunnerConfig.directory})
78
-}catch(err){
+}catch(err:any){
79
result={stdout:err.stdout,stderr:err.stack}
80
81