mirror of
https://github.com/typecho/typecho.git
synced 2025-04-21 02:01:52 +02:00
Fix missing WidgetException error message (#1730)
This commit is contained in:
parent
71c6381b15
commit
0b0476e565
@ -236,6 +236,8 @@ namespace Typecho {
|
||||
} elseif ($exception instanceof \Typecho\Db\Adapter\SQLException) {
|
||||
$message = 'Database Query Error';
|
||||
}
|
||||
} elseif ($exception instanceof \Typecho\Widget\Exception) {
|
||||
$message = $exception->getMessage();
|
||||
} else {
|
||||
$message = 'Server Error';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user