aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/errors.rs
diff options
context:
space:
mode:
authorKyle Sutherland-Cash <kyle.sutherlandcash@gmail.com>2021-05-09 05:58:46 -0700
committerGitHub <noreply@github.com>2021-05-09 05:58:46 -0700
commit2cd433d0d6a43e0b774ee212fc3c95743a520460 (patch)
tree637c6c4bc1a1bd7924f71284d980f917bbbdb1d1 /src/common/errors.rs
parentREADME: shortening + add explanation (#470) (diff)
parentAnd format... (diff)
downloadsl0ppij-2cd433d0d6a43e0b774ee212fc3c95743a520460.tar.gz
sl0ppij-2cd433d0d6a43e0b774ee212fc3c95743a520460.tar.xz
sl0ppij-2cd433d0d6a43e0b774ee212fc3c95743a520460.zip
Merge pull request #473 from zellij-org/bus-business-with-extra-merge-fun
Refactoring sender/receiver stuff - post-merge
Diffstat (limited to 'src/common/errors.rs')
-rw-r--r--src/common/errors.rs12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs
index d8327462..148a3a9e 100644
--- a/src/common/errors.rs
+++ b/src/common/errors.rs
@@ -1,20 +1,22 @@
//! Error context system based on a thread-local representation of the call stack, itself based on
//! the instructions that are sent between threads.
-use super::{ServerInstruction, ASYNCOPENCALLS, OPENCALLS};
-use crate::client::ClientInstruction;
-use crate::pty_bus::PtyInstruction;
-use crate::screen::ScreenInstruction;
use serde::{Deserialize, Serialize};
use std::fmt::{Display, Error, Formatter};
+use crate::client::ClientInstruction;
+use crate::common::thread_bus::{ASYNCOPENCALLS, OPENCALLS};
+use crate::pty::PtyInstruction;
+use crate::screen::ScreenInstruction;
+use crate::server::ServerInstruction;
+
/// The maximum amount of calls an [`ErrorContext`] will keep track
/// of in its stack representation. This is a per-thread maximum.
const MAX_THREAD_CALL_STACK: usize = 6;
#[cfg(not(test))]
-use super::SenderWithContext;
+use super::thread_bus::SenderWithContext;
#[cfg(not(test))]
use std::panic::PanicInfo;
/// Custom panic handler/hook. Prints the [`ErrorContext`].