update error function to return new and improved more useful errors
2.0.0