db-lib::Channel::delete now gives back the actual sql error on failure

This commit is contained in:
shockrah 2020-11-18 00:28:08 -08:00
parent 159262a1f6
commit 571f3a1630

View File

@ -91,7 +91,7 @@ impl FromDB<Channel, Integer> for Channel {
conn.drop_exec(q, params!{"id" => id}).await;
return match result {
Ok(_) => Response::Success,
Err(_) => Response::Other(sql_err!("Member::FromDB::delete Listen i dont know either"))
Err(sql) => Response::Other(sql_err!(sql))
}
}
else {