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 {
200200 if ( data . result . status && data . result . status !== "" ) {
201201 const status : string = data . result . status ;
202202 outputChannel . appendLine ( status ) ;
203- if ( status . endsWith ( "is marked as read only by source control hooks." ) ) {
204- vscode . window . showWarningMessage ( status , { modal : true } ) ;
205- }
206203 throw new Error ( data . result . status ) ;
207204 }
208205 if ( data . status . summary ) {
Original file line number Diff line number Diff line change @@ -21,14 +21,16 @@ async function compileFlags(): Promise<string> {
2121
2222async function importFile ( file : CurrentFile ) : Promise < any > {
2323 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 ) ) ;
3234}
3335
3436function updateOthers ( others : string [ ] ) {
You can’t perform that action at this time.
0 commit comments