Adding the error panel to the interface and using layers as a test case for raising an error. Merges #709.