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 -FunctionsToLoad parameter is used and the Function does not have an alias #96

Closed
jaywryan opened this issue Sep 11, 2016 · 2 comments

Comments

@jaywryan
Copy link
Contributor

When you use -FunctionsToLoad and the Function you are loading does not have an alias associated with it, there is a non-terminating error generated when the following is ran in Start-RSJob

$Alias = Get-Alias -Definition $Function

We can wrap it in a try catch, or just ignore the error.

$Alias = Get-Alias -Definition $Function -ErrorAction SilentlyContinue
@jaywryan
Copy link
Contributor Author

I submitted a PR for this issue #97

proxb added a commit that referenced this issue Sep 11, 2016
issue #96 Suggested fix - fix get-alias error
@proxb
Copy link
Owner

proxb commented Sep 11, 2016

Thanks! I've merged your committ. Appreciate the help!

@proxb proxb closed this as completed Sep 11, 2016
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

No branches or pull requests

2 participants