mirror of
https://github.com/fluencelabs/fluid
synced 2025-06-19 16:21:20 +00:00
improve comments
This commit is contained in:
@ -4,7 +4,7 @@ use crate::sqlite;
|
||||
pub fn query(query: &str) -> AppResult<String> {
|
||||
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| {
|
||||
log::error!("unable to decode result from bytes: {:#x?}", bytes);
|
||||
err_msg(&format!(
|
||||
|
@ -4,7 +4,7 @@ use crate::sqlite;
|
||||
pub fn query(query: &str) -> AppResult<String> {
|
||||
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| {
|
||||
log::error!("unable to decode result from bytes: {:#x?}", bytes);
|
||||
err_msg(&format!(
|
||||
|
Reference in New Issue
Block a user