File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,8 @@ export class ServerComponent {
105
105
}
106
106
} ) ;
107
107
108
+ ServerComponent . writeOutput ( JSON . stringify ( result ) ) ;
109
+
108
110
const newAsset = result . data . assets . find ( asset => asset . name . endsWith ( `.jar` ) ) ;
109
111
110
112
if ( newAsset ) {
@@ -141,7 +143,13 @@ export class ServerComponent {
141
143
142
144
} else {
143
145
updateResult = UpdateStatus . FAILED ;
144
- window . showErrorMessage ( `Something went really wrong when trying to fetch your home directory.` ) ;
146
+
147
+ this . writeOutput ( JSON . stringify ( commandResult ) ) ;
148
+ window . showErrorMessage ( `Something went really wrong when trying to fetch your home directory.` ) . then ( chosen => {
149
+ if ( chosen === `Show` ) {
150
+ this . outputChannel . show ( ) ;
151
+ }
152
+ } ) ;
145
153
}
146
154
} else {
147
155
updateResult = UpdateStatus . DECLINED_UPDATE ;
@@ -158,8 +166,14 @@ export class ServerComponent {
158
166
}
159
167
} catch ( e ) {
160
168
updateResult = UpdateStatus . FAILED ;
161
- window . showErrorMessage ( `Something went really wrong during the update process! ${ e . message } ` ) ;
169
+ ServerComponent . writeOutput ( JSON . stringify ( e ) ) ;
162
170
console . log ( e ) ;
171
+
172
+ window . showErrorMessage ( `Something went really wrong during the update process! Check the Db2 for i Output log for the log` , `Show` ) . then ( chosen => {
173
+ if ( chosen === `Show` ) {
174
+ this . outputChannel . show ( ) ;
175
+ }
176
+ } ) ;
163
177
}
164
178
165
179
return updateResult ;
You can’t perform that action at this time.
0 commit comments