Ease debugging in case of error in the root gadget.

Display the error in the console.