updated Shawl.scala for error information.