Ulepszenie obsługi błędów (dodanie stanu error dla paneli).