Changeset 185 in svn for trunk


Ignore:
Timestamp:
2006-09-19T00:32:27Z (9 years ago)
Author:
Xuefer
Message:

Coverager: better error displaying

Location:
trunk/coverager
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/coverager/coverager.css

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

    r184 r185  
    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
  • trunk/coverager/coverager.tpl.php

    r175 r185  
    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.