You are here

public function SassDebugNode::errorHandler in Sassy 7

Same name and namespace in other branches
  1. 7.3 phpsass/tree/SassDebugNode.php \SassDebugNode::errorHandler()

* Error handler for degug and warning statements. *

Parameters

int Error number : * @param string Message

File

phamlp/sass/tree/SassDebugNode.php, line 81

Class

SassDebugNode
SassDebugNode class. Represents a Sass @debug or @warn directive. @package PHamlP @subpackage Sass.tree

Code

public function errorHandler($errno, $message) {
  echo '<div style="background-color:#ce4dd6;border-bottom:1px dashed #88338d;color:white;font:10pt verdana;margin:0;padding:0.5em 2%;width:96%;"><p style="height:auto;margin:0.25em 0;padding:0;width:100%;"><span style="font-weight:bold;">SASS ' . ($this->warning ? 'WARNING' : 'DEBUG') . ":</span> {$message}</p><p style=\"margin:0.1em;padding:0;padding-left:0.5em;width:100%;\">{$this->filename}::{$this->line}</p><p style=\"margin:0.1em;padding:0;padding-left:0.5em;width:100%;\">Source: {$this->source}</p></div>";
}