Skip to content

Commit fbc9b41

Browse files
committed
Update exit codes
1 parent 6ee6517 commit fbc9b41

File tree

2 files changed

+8
-6
lines changed
  • docs/reference/resources/Microsoft/DSC/Transitional

2 files changed

+8
-6
lines changed

docs/reference/resources/Microsoft/DSC/Transitional/PowerShellScript/index.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,13 @@ exit code, it also emits an error message with details about the execution failu
248248
### Exit code 2
249249

250250
Indicates a PowerShell exception occurred during script execution. When the resource returns this
251-
exit code, it also emits the exception details.
251+
exit code, it writes the error to the console.
252252

253253
### Exit code 3
254254

255-
Indicates the script had errors during execution. When the resource returns this
256-
exit code, it also emits error details about what went wrong in the script.
255+
Indicates the script had errors, typically due to missing or invalid input data.
256+
This exit code is commonly returned when required input parameters are not provided
257+
to the PowerShell scripts or when the input data is in an unexpected format.
257258

258259
## See also
259260

docs/reference/resources/Microsoft/DSC/Transitional/WindowsPowerShellScript/index.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,13 @@ exit code, it also emits an error message with details about the execution failu
244244
### Exit code 2
245245

246246
Indicates a PowerShell exception occurred during script execution. When the resource returns this
247-
exit code, it also emits the exception details.
247+
exit code, it writes the error to the console.
248248

249249
### Exit code 3
250250

251-
Indicates the script had errors during execution. When the resource returns this
252-
exit code, it also emits error details about what went wrong in the script.
251+
Indicates the script had errors, typically due to missing or invalid input data.
252+
This exit code is commonly returned when required input parameters are not provided
253+
to the PowerShell scripts or when the input data is in an unexpected format.
253254

254255
## See also
255256

0 commit comments

Comments
 (0)