Cleaned up error template a bit