fix: widen all catch blocks from \Exception to \Throwable
PHP 8.3 TypeError and Error extend \Throwable but NOT \Exception, so catch(\Exception) silently drops them — explaining why the generation pipeline fails at the publishing step with no activity log entry. Now every catch in the generation path catches \Throwable and logs the exception class name for diagnostics. Bump to v0.2.7. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -128,10 +128,11 @@ class PRAutoBlogger_Reddit_Provider implements PRAutoBlogger_Source_Provider_Int
|
||||
sprintf( 'Reddit r/%s: fetched %d items', $subreddit, $added ),
|
||||
'reddit'
|
||||
);
|
||||
} catch ( \Exception $e ) {
|
||||
} catch ( \Throwable $e ) {
|
||||
PRAutoBlogger_Logger::instance()->error(
|
||||
sprintf(
|
||||
'Reddit: Failed to collect from r/%s: %s',
|
||||
'Reddit: %s collecting from r/%s: %s',
|
||||
get_class( $e ),
|
||||
$subreddit,
|
||||
$e->getMessage()
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user