wobsite.Errors
type pub Errors
A collection of errors produced while building the website, along with the means of easily formatting them.
Instance methods
to_string
Show source codeHide source code
fn pub to_string -> String {
let buf = @entries.iter.reduce(StringBuffer.new, fn (buf, entry) {
if buf.size > 0 { buf.push('\n\n') }
buf.push('${entry.0} \e[31;1merror:\e[0m\n ${entry.1}')
buf
})
buf.into_string
}
fn pub to_string -> String
Converts self
to a String
.
Implemented traits
ToString
impl ToString for Errors