MCPcopy Index your code
hub / github.com/socketstream/socketstream / errorBodyStyling

Function errorBodyStyling

lib/client/formatters/less.js:13–31  ·  view source on GitHub ↗
(root,path, err)

Source from the content-addressed store, hash-verified

11};
12
13function errorBodyStyling(root,path, err) {
14 path = path.replace(root,'');
15 var filename = err.filename.replace(root,'');
16 var r = [
17 'body:before {',
18 'display:block;',
19 'position:absolute;',
20 'top:15px; left:20px; right:20px;',
21 'z-index: 10000;',
22 'content:"Error compiling LESS file: '+path+' at '+(filename||'?')+' '+(err.line||'?')+':'+(err.index||'?')+' '+err.message+'";',
23 'border: 1px solid #888;',
24 'border-radius: 5px;',
25 'background-color: rgba(255,255,255,.5);',
26 'background-color: white;',
27 'padding: 10px 15px;',
28 '}'
29 ];
30 return r.join('\n');
31}
32
33exports.decidePaths = function decidePaths(path, options) {
34

Callers 1

less.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected