db-lib::Channel::delete now gives back the actual sql error on failure
This commit is contained in:
parent
159262a1f6
commit
571f3a1630
@ -91,7 +91,7 @@ impl FromDB<Channel, Integer> for Channel {
|
|||||||
conn.drop_exec(q, params!{"id" => id}).await;
|
conn.drop_exec(q, params!{"id" => id}).await;
|
||||||
return match result {
|
return match result {
|
||||||
Ok(_) => Response::Success,
|
Ok(_) => Response::Success,
|
||||||
Err(_) => Response::Other(sql_err!("Member::FromDB::delete Listen i dont know either"))
|
Err(sql) => Response::Other(sql_err!(sql))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user