Skip to content

Commit

Permalink
Update Throw Error Message (#86)
Browse files Browse the repository at this point in the history
Co-authored-by: David Agustin <[email protected]>
  • Loading branch information
davidagustin and David Agustin committed Nov 3, 2020
1 parent 0dd65ae commit d134cf0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/inline/Button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ const Button = ({ text, externalLink, internalLink, onClick }) => {
</button>
);
}
throw new Error("PropTypes are invalid");
throw new Error(
"Missing required prop. Must specify one of: externalLink, internalLink, or onClick."
);
};

Button.propTypes = PropTypes.oneOfType([
Expand Down

0 comments on commit d134cf0

Please sign in to comment.