Skip to content

Commit

Permalink
Fix missing WidgetException error message (#1730)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Apr 19, 2024
1 parent 71c6381 commit 0b0476e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions var/Typecho/Common.php
Expand Up @@ -236,6 +236,8 @@ public static function error(\Throwable $exception)
} elseif ($exception instanceof \Typecho\Db\Adapter\SQLException) {
$message = 'Database Query Error';
}
} elseif ($exception instanceof \Typecho\Widget\Exception) {
$message = $exception->getMessage();
} else {
$message = 'Server Error';
}
Expand Down

0 comments on commit 0b0476e

Please sign in to comment.