Skip to content
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

Error when *.log file has 0 bytes #35

Closed
texhex opened this issue Jan 16, 2018 · 1 comment
Closed

Error when *.log file has 0 bytes #35

texhex opened this issue Jan 16, 2018 · 1 comment
Labels

Comments

@texhex
Copy link
Owner

texhex commented Jan 16, 2018

If a log file is found after an EXE start, but has no content, an error appears. It needs to be checked not only if a LOG file exists, but also if it has any content.

 /app silent.bat /hide
 Done, return code is 0
--- Output ---
--------------
 Waiting 10 seconds before checking if the process is still running...
  [CallInst] is no longer running, waiting 5 seconds to allow cleanup...
 Start of [C:\Users\Administrator\AppData\Local\Temp\ME-8.1.72.3002\CallInst.exe] done
Checking for first file matching [*.log] in [C:\Users\Administrator\AppData\Local\Temp\ME-8.1.72.3002]...
PS>TerminatingError(Write-HostOutputFromProgram): "Cannot bind argument to parameter 'Content' because it is an empty string."
Write-HostOutputFromProgram : Cannot bind argument to parameter 'Content' because it is an empty string.
At Z:\Scripts\BiosSledgehammer\BiosSledgehammer.ps1:2249 char:57
+    Write-HostOutputFromProgram -Name $filename -Content $content
+                                                         ~~~~~~~~
   + CategoryInfo          : InvalidData: (:) [Write-HostOutputFromProgram], ParameterBindingValidationException
   + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Write-HostOutputFromProgram
Write-HostOutputFromProgram : Cannot bind argument to parameter 'Content' because it is an empty string.
At Z:\Scripts\BiosSledgehammer\BiosSledgehammer.ps1:2249 char:57
+    Write-HostOutputFromProgram -Name $filename -Content $content
+                                                         ~~~~~~~~
   + CategoryInfo          : InvalidData: (:) [Write-HostOutputFromProgram], ParameterBindingValidationException
   + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Write-HostOutputFromProgram

::: Launching update executable finished :::
@texhex texhex added the bug label Jan 16, 2018
texhex added a commit that referenced this issue Jan 20, 2018
@texhex
Copy link
Owner Author

texhex commented Jan 20, 2018

Fixed in 3.3.2, closing issue.

@texhex texhex closed this as completed Jan 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant