loader: add `last_loader_error` to handle the potential error messages.