will now throw with stack if no functionis passed
Merge pull request #3 from MauriceButler/error

will now throw with stack if no function is passed