Skip to content

Check error reading environment file#148

Merged
lucaspin merged 1 commit intomasterfrom
windows-fixes
Mar 11, 2022
Merged

Check error reading environment file#148
lucaspin merged 1 commit intomasterfrom
windows-fixes

Conversation

@lucaspin
Copy link
Copy Markdown
Contributor

@lucaspin lucaspin commented Mar 10, 2022

For some reason, the environment dump file isn't created in case of some errors. Here's an example from https://semaphore.semaphoreci.com/workflows/856bbbb5-afe0-4513-abac-4bb1c4fe46be?pipeline_id=212dfab6-335d-4174-8f3a-f8d01a45e222:

...
Mar 10 23:38:04.176 : Error creating environment from file C:\Users\ADMINI~1\AppData\Local\Temp\2\current-agent-cmd.env.after: open C:\Users\ADMINI~1\AppData\Local\Temp\2\current-agent-cmd.env.after: The system cannot find the file specified.
...

This fix makes sure we don't try to do anything else in case the environment file isn't there.

@lucaspin lucaspin requested a review from shiroyasha March 10, 2022 23:42
@shiroyasha
Copy link
Copy Markdown
Contributor

Looks good. 👍

@lucaspin lucaspin merged commit 271b1bd into master Mar 11, 2022
@lucaspin lucaspin deleted the windows-fixes branch March 11, 2022 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants