Added error messages to panics