Summary
In this chapter, we have learned some ways to handle errors in Rust and Rocket applications. We can use panic!, Option, and Result as a way to propagate errors and create handling for the errors.
We have also learned about creating a custom type that implements the Error trait. The type can store another error, creating an error chain.
Finally, we learned ways to log errors in our application. We can also use log capability to improve the application itself.
Our user pages are looking good, but using String all over the place is cumbersome, so in the next chapter, we are going to learn more about templating using CSS, JavaScript, and other assets in our application.