Skip to content

Commit

Permalink
Merge pull request #201
Browse files Browse the repository at this point in the history
dev
  • Loading branch information
leonardosahon authored Nov 20, 2024
2 parents f8876f4 + 5f190ba commit 9ead807
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Core/CoreException.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ private function container(?string $title, ?string $body, array $other = []): ar
}

$env = $this->get_env();
$this->always_log = $env == "PRODUCTION" ? true : $this->always_log;
$return_as_string = $other['as_string'] ?: false;
$echo_error = $other['echo_error'] ?? true;
$display_error = $env == "DEVELOPMENT" || $other['core'] == "view";
Expand Down Expand Up @@ -410,7 +411,7 @@ private function container(?string $title, ?string $body, array $other = []): ar

$rtn = [
"act" => $other['act'] ?? "allow",
"error" => $error ?? (@$display ?: ($write ? "Check logs for details. Error encountered" : "Error encountered, but could not write to log file due to insufficient permission!")),
"error" => $error ?? (@$display ?: ($this->always_log ? "Check logs for details. Error encountered" : "Error encountered, but was not logged")),
"as_string" => $return_as_string,
"display_error" => $display_error,
"echo_error" => $echo_error,
Expand Down

0 comments on commit 9ead807

Please sign in to comment.