-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JavaToolInstaller]. Handling for 'unknown' errors #13237
[JavaToolInstaller]. Handling for 'unknown' errors #13237
Conversation
Tasks/JavaToolInstallerV0/task.json
Outdated
@@ -177,6 +177,7 @@ | |||
"CorrelationIdForARM": "Correlation ID from ARM api call response : %s", | |||
"JavaNotPreinstalled": "Java %s is not preinstalled on this agent", | |||
"UsePreinstalledJava": "Use preinstalled JDK from %s", | |||
"WrongArchiveStructure": "JDK file is not valid. Verify if JDK file contains only one root folder with 'bin' inside." | |||
"WrongArchiveStructure": "JDK file is not valid. Verify if JDK file contains only one root folder with 'bin' inside.", | |||
"ShareAccessError": "Network shared resource not available (%s)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: 'Network shared resource not available: (%s)'
9202eb4
to
09b1fad
Compare
@@ -11,6 +11,7 @@ interface IDirectoriesDictionary { | |||
} | |||
|
|||
export class JavaFilesExtractor { | |||
readonly ERR_SHARE_ACCESS = -4094; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could it be private instead of public?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
09b1fad
to
ba07852
Compare
Task name: JavaToolInstaller
Description: Added handling for an error that occurs when calling a
stat
method for an inaccessible Windows share.Documentation changes required: (Y/N) N
Added unit tests: (Y/N) N
Attached related issue: (Y/N) #13006 and #12200
Checklist: