Browse Source

Change Throwable to Exception

Ishan Vyas 5 years ago
parent
commit
f43b29316b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Utility/FileLog.php

+ 2 - 2
src/Utility/FileLog.php

@@ -57,8 +57,8 @@ class FileLog {
 			if ($traceKey) {
 				try {
 					throw new Exception('Trace string', 1);
-				} catch (\Throwable $t) {
-					$data['trace_string'] = $t->getTraceAsString();
+				} catch (\Exception $e) {
+					$data['trace_string'] = $e->getTraceAsString();
 				}
 			}