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

pass a more descriptive error message for PhysAddr validation #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mzagrabe
Copy link
Contributor

@mzagrabe mzagrabe commented Feb 1, 2016

When a routine calls PhysAddr->validate to validate an L2 address the
descriptive message is lost by just returning a boolean success or
failure. Instead allow passing in a reference to a scalar to give the
calling function an opportunity to give the user more information about
the specifics behind Netdot rejecting the MAC address they entered.

Small amounts of whitespace formatting were performed in this commit as
well as the functional changes. Changes such as removing trailing
whitespace in functions that were touched and also replacing tabs with
four spaces.

When a routine calls PhysAddr->validate to validate an L2 address the
descriptive message is lost by just returning a boolean success or
failure. Instead allow passing in a reference to a scalar to give the
calling function an opportunity to give the user more information about
the specifics behind Netdot rejecting the MAC address they entered.

Small amounts of whitespace formatting were performed in this commit as
well as the functional changes. Changes such as removing trailing
whitespace in functions that were touched and also replacing tabs with
four spaces.
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.

None yet

1 participant