diff --git a/templates/Error/error400.php b/templates/Error/error400.php
index 68c0e63418..9ead1656c8 100644
--- a/templates/Error/error400.php
+++ b/templates/Error/error400.php
@@ -25,13 +25,14 @@
params)) : ?>
- SQL Query Params:
- params) ?>
+ SQL Query Params:
+ params) ?>
-= $this->element('auto_table_warning') ?>
+
element('auto_table_warning');
-$this->end();
+ $this->end();
endif;
?>
= h($message) ?>
diff --git a/templates/Error/error500.php b/templates/Error/error500.php
index 0295c760d8..4f08488e90 100644
--- a/templates/Error/error500.php
+++ b/templates/Error/error500.php
@@ -29,8 +29,10 @@
params) ?>
+ getFile() ?>
+ getLine() ?>
Error in:
- = sprintf('%s, line %s', str_replace(ROOT, 'ROOT', $error->getFile()), $error->getLine()) ?>
+ = $this->Html->link(sprintf('%s, line %s', Debugger::trimPath($file), $line), Debugger::editorUrl($file, $line)); ?>
element('auto_table_warning');