Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99b7541e authored by Martin Brabham's avatar Martin Brabham
Browse files

Make errors a bit more obvious

Bug: 224602924
Test: mma -j $(nproc)
Test: ./build.py
Test: system/gd/cert/run --clean --topshim
Tag: #floss
Change-Id: If74654e35c3e2188306e8e60182de4d2c9393a41
parent a53dbe22
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -126,8 +126,15 @@ pub fn cb_variant(input: TokenStream) -> TokenStream {
        #[no_mangle]
        extern "C" fn #ident(#params) {
            #stmts

            (get_dispatchers().lock().unwrap().get::<#dispatcher>().unwrap().lock().unwrap().dispatch)(#rpath(#args));
                (get_dispatchers()
                    .lock()
                    .expect("Couldn't lock dispatchers!")
                    .get::<#dispatcher>()
                    .expect("Couldn't find dispatcher type: #dispatcher")
                    .clone()
                    .lock()
                    .expect("Couldn't lock specific dispatcher: #dispatcher")
                    .dispatch)(#rpath(#args));
            }
    };