File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,11 @@ export async function registerWorkspaceSharing(context: GitpodExtensionContext):
322
322
} catch ( err ) {
323
323
console . error ( 'cannot controlAdmission' , err ) ;
324
324
if ( level === 'everyone' ) {
325
- await vscode . window . showErrorMessage ( `Cannot share workspace: ${ err . toString ( ) } ` ) ;
325
+ if ( err ?. code === ErrorCodes . PERMISSION_DENIED ) {
326
+ await vscode . window . showErrorMessage ( `Cannot share workspace: ${ err . toString ( ) } See [documentation](https://www.gitpod.io/docs/configure/orgs/policies)` )
327
+ } else {
328
+ await vscode . window . showErrorMessage ( `Cannot share workspace: ${ err . toString ( ) } ` ) ;
329
+ }
326
330
} else {
327
331
await vscode . window . showInformationMessage ( `Cannot stop workspace sharing: ${ err . toString ( ) } ` ) ;
328
332
}
You can’t perform that action at this time.
0 commit comments