improved error handling in WeaveFileFormat
improved error handling in WeaveFileFormat

Change-Id: Idfeb567bfd85aeb42db1ae0e92fbb1f962c8ae6c

WeaveTeam/WeaveJS,WeaveTeam/WeaveJS,WeaveTeam/WeaveJS,WeaveTeam/WeaveJS