diff --git a/src/models/blog_authors.rs b/src/models/blog_authors.rs index 8a0e73e6..440bed91 100644 --- a/src/models/blog_authors.rs +++ b/src/models/blog_authors.rs @@ -23,14 +23,14 @@ impl BlogAuthor { diesel::insert_into(blog_authors::table) .values(new) .get_result(conn) - .expect("Error saving new blog") + .expect("Error saving new blog author") } pub fn get(conn: &PgConnection, id: i32) -> Option { blog_authors::table.filter(blog_authors::id.eq(id)) .limit(1) .load::(conn) - .expect("Error loading blog by id") + .expect("Error loading blog author by id") .into_iter().nth(0) } }