Changed compile scss function to handle errors