db/src/channels.rs/ : Clerical error fix in Response::Other<String> message

src/channels.rs/ : simple log of sql error to stderr
main.rs : swapped secret and name parameters as they were backwards somehow (tfw cant type)
src/messages.sr : more clerical shit(mispelled parameter name) and logging sql to stderr
This commit is contained in:
shockrah
2020-11-17 00:08:13 -08:00
parent 88a5d63e4f
commit 751b947bef
4 changed files with 10 additions and 90 deletions

View File

@@ -186,7 +186,8 @@ impl Channel {
Err(_) => Response::Empty
};
}
return Response::Other("Could fetch new channel".into());
// TODO: change this to return Result<> which should help with ambiguity
return Response::Other("Could not fetch new channel".into());
}
return Response::Other(no_conn!("db::channels::add"))
}