Skip to content

Commit fd6c7aa

Browse files
docs: clarify windows credential errors during lifecycle script process creation (#1699)
1 parent ee70f8f commit fd6c7aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/aws/greengrass/lifecyclemanager/ShellRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public boolean successful(Exec e, String note, IntConsumer background, Greengras
111111
}
112112
} catch (IOException ex) {
113113
logger.atError("shell-runner-error").kv(SCRIPT_NAME_KEY, note).kv("command", e.toString())
114-
.log("Error while running process", ex);
114+
.log("Error while running component lifecycle script", ex);
115115
return false;
116116
}
117117
return true;

src/main/java/vendored/com/microsoft/alm/storage/windows/internal/WindowsCredUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static byte[] read(String key) throws IOException {
3838
final CredAdvapi32.CREDENTIAL credential = new CredAdvapi32.CREDENTIAL(pCredential.credential);
3939
return credential.CredentialBlob.getByteArray(0, credential.CredentialBlobSize);
4040
} catch (LastErrorException e) {
41-
throw new IOException("Failed to read credential", e);
41+
throw new IOException("Failed to read credential for " + key, e);
4242
} finally {
4343
if (pCredential.credential != null) {
4444
try (LockScope ls = LockScope.lock(lock)) {

0 commit comments

Comments
 (0)