Skip to content
2 changes: 1 addition & 1 deletion app/Actions/CheckInternetConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function handle(): bool|string

return Str::trim($response->body());
} catch (Throwable $e) {
Log::error('Failed to check internet connection.', [$e->getMessage()]);
Log::error('Failed to connect to the internet.', [$e->getMessage()]);

return false;
}
Expand Down
5 changes: 5 additions & 0 deletions app/Filament/Exports/ResultExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ public static function getColumns(): array
->state(function (Result $record) {
return $record->result_url;
}),
ExportColumn::make('error_message')
->state(function (Result $record) {
return $record->error_message;
})
->enabledByDefault(false),
ExportColumn::make('comments')
->enabledByDefault(false),
ExportColumn::make('status')
Expand Down
7 changes: 7 additions & 0 deletions app/Filament/Resources/ResultResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,13 @@ public static function table(Table $table): Table
->toggledHiddenByDefault()
->sortable()
->alignment(Alignment::Center),
Tables\Columns\TextColumn::make('data.message')
->label('Error Message')
->limit(15)
->tooltip(fn ($state) => $state)
->toggleable()
->toggledHiddenByDefault()
->sortable(),
Tables\Columns\TextColumn::make('created_at')
->dateTime(config('app.datetime_format'))
->timezone(config('app.display_timezone'))
Expand Down
2 changes: 1 addition & 1 deletion app/Jobs/CheckForInternetConnectionJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function handle(): void
$this->result->update([
'data->type' => 'log',
'data->level' => 'error',
'data->message' => 'Failed to fetch external IP address, server is likely unable to connect to the internet.',
'data->message' => 'Failed to connect to the internet.',
'status' => ResultStatus::Failed,
]);

Expand Down