Preserve functionality of passing message to error