File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -200,9 +200,6 @@ export class AtelierAPI {
200
200
if ( data . result . status && data . result . status !== "" ) {
201
201
const status : string = data . result . status ;
202
202
outputChannel . appendLine ( status ) ;
203
- if ( status . endsWith ( "is marked as read only by source control hooks." ) ) {
204
- vscode . window . showWarningMessage ( status , { modal : true } ) ;
205
- }
206
203
throw new Error ( data . result . status ) ;
207
204
}
208
205
if ( data . status . summary ) {
Original file line number Diff line number Diff line change @@ -21,14 +21,16 @@ async function compileFlags(): Promise<string> {
21
21
22
22
async function importFile ( file : CurrentFile ) : Promise < any > {
23
23
const api = new AtelierAPI ( file . uri ) ;
24
- return api . putDoc (
25
- file . name ,
26
- {
27
- content : file . content . split ( / \r ? \n / ) ,
28
- enc : false ,
29
- } ,
30
- true
31
- ) ;
24
+ return api
25
+ . putDoc (
26
+ file . name ,
27
+ {
28
+ content : file . content . split ( / \r ? \n / ) ,
29
+ enc : false ,
30
+ } ,
31
+ true
32
+ )
33
+ . catch ( ( error ) => vscode . window . showErrorMessage ( error . message ) ) ;
32
34
}
33
35
34
36
function updateOthers ( others : string [ ] ) {
You can’t perform that action at this time.
0 commit comments