Jan. 13th, 2012

juan_gandhi: (Default)
  protected def badLuck(text: String, details: String): Elem = badLuck(text, ("title", details))
  protected def ifHome(fun: => NodeSeq) = if (isHomeValid) fun 
           else badLuck("NEXUS_HOME NOT CONFIGURED", 
                        "Please go back to Boot Configuration page and set a valid NEXUS_HOME folder")


Now in the code you write like this:

ifHome {
  println("Honey, I'm home!!!")
  haveDinner
  watchTv
  // etc
}

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

October 2025

S M T W T F S
    1 23 4
5 678 9 1011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 10th, 2025 10:09 am
Powered by Dreamwidth Studios