From 8cae0bd464215e1e2de0af6b6ef734547b1ba100 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 28 Aug 2024 10:01:47 +0200 Subject: [PATCH] Add error message --- application/controllers/Adif.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/controllers/Adif.php b/application/controllers/Adif.php index 7fe5cebaa..5701cb692 100644 --- a/application/controllers/Adif.php +++ b/application/controllers/Adif.php @@ -237,6 +237,7 @@ class adif extends CI_Controller { $custom_errors = $this->logbook_model->import_bulk($alladif, $this->input->post('station_profile'), $this->input->post('skipDuplicate'), $this->input->post('markClublog'),$this->input->post('markLotw'), $this->input->post('dxccAdif'), $this->input->post('markQrz'), $this->input->post('markHrd'), true, $this->input->post('operatorName'), false, $this->input->post('skipStationCheck')); } catch (Exception $e) { log_message('error', 'Import error: '.$e->getMessage()); + $custom_errors .= __("Failed to parse at least one ADIF record. Please check the imported ADIF file.").'
'; } } else { // Failure, if no ADIF inside ZIP $data['max_upload'] = ini_get('upload_max_filesize');