Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit055024e

Browse files
committed
ts error updates
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent335a9c7 commit055024e

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

‎src/actions/onStartup.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ const onStartup = async (context: Context): Promise<void> => {
4242
consttutorial=awaittutorialRes.json()
4343
send({type:'START_TUTORIAL_FROM_URL',payload:{ tutorial}})
4444
return
45-
}catch(e){
45+
}catch(e:any){
4646
// 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}"`)
47+
thrownewError(`Failed to load tutorial from url${TUTORIAL_URL} with error "${e.message}"`)
4848
}
4949
}
5050
// NEW from start click
@@ -56,7 +56,7 @@ const onStartup = async (context: Context): Promise<void> => {
5656
const{ position}=awaitcontext.onContinue(tutorial)
5757
// communicate to client the tutorial & stepProgress state
5858
send({type:'LOAD_STORED_TUTORIAL',payload:{ env, tutorial, position}})
59-
}catch(e){
59+
}catch(e:any){
6060
consterror={
6161
type:'UnknownError',
6262
message:`Location: Editor startup\n\n${e.message}`,

‎src/actions/onTutorialConfigContinue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const onTutorialConfigContinue = async (action: T.Action, context: Context): Pro
2525
if(tutorialToContinue.config?.webhook){
2626
setupWebhook(tutorialToContinue.config.webhook)
2727
}
28-
}catch(e){
28+
}catch(e:any){
2929
consterror={
3030
type:'UnknownError',
3131
message:`Location: Editor tutorial continue config.\n\n${e.message}`,

‎src/services/hooks/utils/openFiles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const openFiles = async (files: string[] = []): Promise<void> => {
1515
constabsoluteFilePath=join(wr,filePath)
1616
constdoc=awaitvscode.workspace.openTextDocument(absoluteFilePath)
1717
awaitvscode.window.showTextDocument(doc,vscode.ViewColumn.One)
18-
}catch(error){
18+
}catch(error:any){
1919
console.log(`Failed to open file${filePath}:${error.message}`)
2020
}
2121
}

‎src/services/hooks/utils/runCommands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const runCommands = async (commands: string[] = []): Promise<void> => {
1515
try{
1616
result=awaitexec({ command})
1717
console.log(result)
18-
}catch(error){
18+
}catch(error:any){
1919
console.error(`Command failed:${error.message}`)
2020
send({type:'COMMAND_FAIL',payload:{process:{ ...process,status:'FAIL'}}})
2121
return

‎src/services/reset/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const reset = async ({ branch, hash }: Input): Promise<void> => {
6363
awaitexec({
6464
command:`git reset --hard${hash}`,
6565
})
66-
}catch(error){
66+
}catch(error:any){
6767
console.error('Error resetting')
6868
console.error(error.message)
6969
}

‎src/services/testRunner/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const createTestRunner = (data: TT.Tutorial, callbacks: Callbacks): ((params: an
7575
}
7676
logger('COMMAND',command)
7777
result=awaitexec({ command,dir:testRunnerConfig.directory})
78-
}catch(err){
78+
}catch(err:any){
7979
result={stdout:err.stdout,stderr:err.stack}
8080
}
8181

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp