Skip to content

Commit a278002

Browse files
committed
Improve message to help resolve scenario where isfs user lacks %DB_IRISSYS:READ
1 parent 487f7bd commit a278002

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/providers/FileSystemProvider/FileSystemProvider.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,10 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
259259
if (error) {
260260
console.log(error);
261261
if (error.errorText.includes(" #5540:")) {
262+
const nsUpper = api.config.ns.toUpperCase();
262263
const message = `User '${api.config.username}' cannot list ${
263-
csp ? "web application" : "namespace"
264-
} contents. To resolve this, execute the following SQL in the ${api.config.ns.toUpperCase()} namespace:\n\t GRANT EXECUTE ON %Library.RoutineMgr_StudioOpenDialog TO ${
264+
csp ? `web application '${uri.path}'` : "namespace"
265+
} contents. If they do not have READ permission on the default code database of the ${nsUpper} namespace then grant it and retry. If the problem remains then execute the following SQL in that namespace:\n\t GRANT EXECUTE ON %Library.RoutineMgr_StudioOpenDialog TO ${
265266
api.config.username
266267
}`;
267268
outputChannel.appendError(message);

0 commit comments

Comments
 (0)