Refactored error assertion to use .isTruthy()
Added assertion error detail passing