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

Invalid missingUncooked entries produce confusing error #71

Open
pledbrook opened this issue Dec 18, 2021 · 0 comments
Open

Invalid missingUncooked entries produce confusing error #71

pledbrook opened this issue Dec 18, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@pledbrook
Copy link
Contributor

If the build can't find a file that's listed in the missingUncooked array, you get an error like this:

Copying requested uncooked packages...
Including MissingUncooked
ForEach-Object : The property 'FullName' cannot be found on this object. Verify that the property exists.
At E:\Games\Mods\lwotc\.scripts\X2ModBuildCommon\build_common.ps1:148 char:11
+         $this | ForEach-Object $stepCallback
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [ForEach-Object], PropertyNotFoundException
    + FullyQualifiedErrorId : PropertyNotFoundStrict,Microsoft.PowerShell.Commands.ForEachObjectCommand

It would be better to have a clearer message that the file cannot be found.

@Xymanek Xymanek added the bug Something isn't working label Dec 18, 2021
@Xymanek Xymanek changed the title Cooking: invalid missingUncooked entries produce confusing error Invalid missingUncooked entries produce confusing error Dec 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants