Skip to content

Commit 6a00728

Browse files
committed
chore(jailer): clarify main function wrapping
Add a comment why we wrap the actual main inplementation. Signed-off-by: Egor Lazarchuk <[email protected]>
1 parent 74a5161 commit 6a00728

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/jailer/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ pub fn to_cstring<T: AsRef<Path> + Debug>(path: T) -> Result<CString, JailerErro
305305
CString::new(path_str).map_err(JailerError::CStringParsing)
306306
}
307307

308+
/// We wrap the actual main in order to pretty print an error with Display trait.
308309
fn main() -> Result<(), JailerError> {
309310
let result = main_exec();
310311
if let Err(e) = result {

0 commit comments

Comments
 (0)