mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-22 19:40:14 -04:00
warn instead of error for missing categories
This commit is contained in:
parent
71a4e093b9
commit
dc218bfaa8
@ -15,7 +15,7 @@ use std::collections::{BTreeMap, BTreeSet};
|
|||||||
|
|
||||||
use reqwasm::http;
|
use reqwasm::http;
|
||||||
use sycamore::prelude::*;
|
use sycamore::prelude::*;
|
||||||
use tracing::{debug, error, info, instrument};
|
use tracing::{debug, error, info, instrument, warn};
|
||||||
use web_sys::{window, Storage};
|
use web_sys::{window, Storage};
|
||||||
|
|
||||||
use recipes::{parse, Ingredient, IngredientAccumulator, Recipe};
|
use recipes::{parse, Ingredient, IngredientAccumulator, Recipe};
|
||||||
@ -93,7 +93,7 @@ impl AppService {
|
|||||||
.map_err(|e| format!("{:?}", e))?;
|
.map_err(|e| format!("{:?}", e))?;
|
||||||
}
|
}
|
||||||
Ok(None) => {
|
Ok(None) => {
|
||||||
error!("There is no category file");
|
warn!("There is no category file");
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
error!("{}", e);
|
error!("{}", e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user