Commit 7bba93b
committed
(PA-7407) Add more detailed error information when upgrade fails
This commit outputs information on any error(s) that caused the
puppet-agent upgrade on Windows to fail. Previously, when the
upgrade fails with a ScriptHalted error, only the error is
provided with no other information on why it failed.
This commit updates install_puppet.ps1 to put any errors
from installer.log into puppet_agent_upgrade_failure.log.
Then, in the puppet_agent_upgrade_error, read_content_and_delete_file()
will output the error information from the error log then delete
the error log.1 parent 8d062b8 commit 7bba93b
File tree
2 files changed
+4
-1
lines changed- files
- lib/puppet/provider/puppet_agent_upgrade_error
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
350 | 353 | | |
351 | 354 | | |
352 | 355 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments