mirror of
https://github.com/fluencelabs/fluid
synced 2025-06-20 08:36:31 +00:00
improve comments
This commit is contained in:
@ -4,7 +4,7 @@ use crate::sqlite;
|
|||||||
pub fn query(query: &str) -> AppResult<String> {
|
pub fn query(query: &str) -> AppResult<String> {
|
||||||
let response = sqlite::call(query.as_bytes());
|
let response = sqlite::call(query.as_bytes());
|
||||||
|
|
||||||
// Decode query result to a utf8 string
|
// Add more details to error message
|
||||||
String::from_utf8(response).map_err(|e| {
|
String::from_utf8(response).map_err(|e| {
|
||||||
log::error!("unable to decode result from bytes: {:#x?}", bytes);
|
log::error!("unable to decode result from bytes: {:#x?}", bytes);
|
||||||
err_msg(&format!(
|
err_msg(&format!(
|
||||||
|
@ -4,7 +4,7 @@ use crate::sqlite;
|
|||||||
pub fn query(query: &str) -> AppResult<String> {
|
pub fn query(query: &str) -> AppResult<String> {
|
||||||
let response = sqlite::call(query.as_bytes());
|
let response = sqlite::call(query.as_bytes());
|
||||||
|
|
||||||
// Decode query result to a utf8 string
|
// Add more details to error message
|
||||||
String::from_utf8(response).map_err(|e| {
|
String::from_utf8(response).map_err(|e| {
|
||||||
log::error!("unable to decode result from bytes: {:#x?}", bytes);
|
log::error!("unable to decode result from bytes: {:#x?}", bytes);
|
||||||
err_msg(&format!(
|
err_msg(&format!(
|
||||||
|
Reference in New Issue
Block a user