aboutsummaryrefslogblamecommitdiffstats
path: root/filamento/src/logic/connection_error.rs
blob: 7cb39b68fab4b00652db9451edfa4336e9ca4cd8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                                      

                                    

                            

                       



                                                            
                                           
 
// SPDX-FileCopyrightText: 2025 cel <cel@bunny.garden>
//
// SPDX-License-Identifier: AGPL-3.0-or-later

use lampada::error::ConnectionError;

use crate::files::FileStore;

use super::ClientLogic;

pub async fn handle_connection_error<Fs: FileStore + Clone>(
    logic: ClientLogic<Fs>,
    error: ConnectionError,
) {
    logic.handle_error(error.into()).await;
}