Skip to content

Commit 11ed5f3

Browse files
committed
Merge branch 'master' of https://github.com/neet/md2qiita
2 parents 9c6f77d + 8403cd6 commit 11ed5f3

File tree

7 files changed

+24
-0
lines changed

7 files changed

+24
-0
lines changed

src/commands/compose.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ export async function compose (resource?: Uri) {
103103
commands.executeCommand('vscode.open', Uri.parse(item.url));
104104
}
105105
} catch (error) {
106+
// tslint:disable-next-line:no-console
107+
console.warn(error);
108+
106109
handleErrorMessage(error);
107110
}
108111
});

src/commands/deleteItem.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ export async function deleteItem (resource: { item: Item }) {
4242
'投稿を削除しました',
4343
));
4444
} catch (error) {
45+
// tslint:disable-next-line:no-console
46+
console.warn(error);
47+
4548
return handleErrorMessage(error);
4649
}
4750
}

src/commands/editTags.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ export async function editTags (resource: { item: Item }) {
5555
'タグを編集しました',
5656
));
5757
} catch (error) {
58+
// tslint:disable-next-line:no-console
59+
console.warn(error);
60+
5861
return handleErrorMessage(error);
5962
}
6063
});

src/commands/editTitle.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ export function editTitle (resource: { item: Item }) {
4040
'タイトルを編集しました',
4141
));
4242
} catch (error) {
43+
// tslint:disable-next-line:no-console
44+
console.warn(error);
45+
4346
return handleErrorMessage(error);
4447
}
4548
});

src/commands/expandItems.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ export async function expandItems () {
77
await qiitaItemsProvider.expandItems();
88
}
99
} catch (error) {
10+
// tslint:disable-next-line:no-console
11+
console.warn(error);
12+
1013
handleErrorMessage(error);
1114
}
1215
}

src/commands/makePublic.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ export async function makePublic (resource: { item: Item }) {
5555
'公開範囲を公開に変更しました',
5656
));
5757
} catch (error) {
58+
// tslint:disable-next-line:no-console
59+
console.warn(error);
60+
5861
return handleErrorMessage(error);
5962
}
6063
}

src/commands/openItem.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ export const updater = async (item: Item, document: TextDocument) => {
3333
'投稿を更新しました',
3434
));
3535
} catch (error) {
36+
// tslint:disable-next-line:no-console
37+
console.warn(error);
38+
3639
handleErrorMessage(error);
3740
}
3841
};
@@ -71,6 +74,9 @@ export function openItem (storagePath?: string) {
7174
}
7275
});
7376
} catch (error) {
77+
// tslint:disable-next-line:no-console
78+
console.warn(error);
79+
7480
window.showErrorMessage(localize(
7581
'commands.openItem.failure.fallback',
7682
'ファイルの表示に失敗しました。指定された投稿は存在しない可能性があります。',

0 commit comments

Comments
 (0)