Add backtrace to invalid value for width

pull/3558/head
Isaac Connor 2022-08-03 12:28:39 -04:00
parent 6f146d1af0
commit f4b8066d00
1 changed files with 4 additions and 1 deletions

View File

@ -876,7 +876,10 @@ public static function getStatuses() {
if ( $scale < $options['scale'] )
$options['scale'] = $scale;
} else {
Warning('Invalid value for width: '.$options['width']);
$backTrace = debug_backtrace();
$file = $backTrace[1]['file'];
$line = $backTrace[1]['line'];
Warning('Invalid value for width: '.$options['width']. ' from '.$file.':'.$line);
}
}
}