Changeset 4aa68f9 in git


Ignore:
Timestamp:
2006-09-19T00:32:27Z (13 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.2, 1.3, 3.0, 3.1, 3.2, master, trunk
Children:
0def57d
Parents:
30f90f5
Message:

Coverager: better error displaying

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@185 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

Location:
coverager
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • coverager/coverager.css

    rcf59070 r4aa68f9  
    6161
    6262.footnote { text-align: right; font-size: 12px; }
     63.error { color: red; }
  • coverager/coverager.php

    r30f90f5 r4aa68f9  
    125125        }
    126126        else if (!$this->datadir) {
    127             $action = 'require xcache.coveragedump_directory';
     127            $action = 'error';
     128            $error  = 'require `ini:xcache.coveragedump_directory` or `config:$datadir` to be set';
    128129        }
    129130        else {
    130             $action = "no data";
     131            $action = 'error';
     132            $error  = "no data";
    131133        }
    132134
  • coverager/coverager.tpl.php

    r4dfb67b r4aa68f9  
    226226}
    227227else {
    228     echo htmlspecialchars($action);
     228    $error_html = htmlspecialchars($error);
     229    echo <<<EOS
     230    <span class="error">{$error_html}</span>
     231EOS;
    229232}
    230233?>
Note: See TracChangeset for help on using the changeset viewer.