Skip to content

Commit 2ebdb1b

Browse files
Installer privileges error report enhancement
1 parent 80bdff3 commit 2ebdb1b

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"printableName": "Cache Web Terminal",
66
"description": "Web-based terminal emulator for Caché administering.",
77
"author": "ZitRo",
8-
"version": "4.0.0-beta.14",
8+
"version": "4.0.0-beta.15",
99
"gaID": "UA-83005064-2",
1010
"releaseNumber": 26,
1111
"scripts": {

src/cls/WebTerminal/Installer.cls

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,17 @@ ClassMethod CreateProjection(cls As %String, ByRef params) As %Status
5252
set ^WebTerminal("FirstLaunch") = 1
5353
write !, "Installing WebTerminal application to " _ ns
5454
set dbdir = $$$defdir
55-
set $Namespace = "%SYS"
55+
try {
56+
set $Namespace = "%SYS"
57+
} catch (e) {
58+
set mes = "<PROTECT> The user " _ $Username _ " has no privileges"
59+
_ " to enter the %SYS namespace. Please, log in as a privileged user"
60+
_ " to set up the WebTerminal application."
61+
set err = $$$ERROR($$$GeneralError, mes)
62+
do ##class(WebTerminal.Analytics).ReportInstallStatus(err)
63+
write !, mes
64+
return err
65+
}
5666

5767
set cspProperties("AutheEnabled") = $$$AutheCache
5868
set cspProperties("NameSpace") = ns

0 commit comments

Comments
 (0)