Replaced error strings with proper stack traces