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

Rework the error routine so it will not error out. #66

Merged
merged 1 commit into from
Aug 27, 2020
Merged

Conversation

TheGrandWazoo
Copy link
Owner

  • Under a certain condition, the variable $freenas_rest_connection would
    not be defined resulting in a perl ‘blessed’ error. Added logic to see
    if a variable is being passed in the @_ and use it, else use
    $freenas_rest_connection.
  • Use caller (1)[3] instead of passing the function name through the @_.

Cherry Picking to branch v2.0

- Under a certain condition, the variable $freenas_rest_connection would
not be defined resulting in a perl ‘blessed’ error. Added logic to see
if a variable is being passed in the @_ and use it, else use
$freenas_rest_connection.
- Use caller (1)[3] instead of passing the function name through the @_.
@TheGrandWazoo TheGrandWazoo merged commit a11d7de into 2.0 Aug 27, 2020
@TheGrandWazoo
Copy link
Owner Author

Cherry pick a11d7de to branch.

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.

1 participant