Some error checks
Some error checks

Original git commit by Alexander Larsson <alex@greebo.(none)> at 1166009591 +0100

svn path=/trunk/; revision=227

philipl/gvfs,philipl/gvfs,philipl/gvfs,halfline/gvfs,gicmo/gvfs,xkahn/gvfs-cmis,thiblahute/gvfs,thiblahute/gvfs,xkahn/gvfs-cmis,xkahn/gvfs-cmis,halfline/gvfs,gicmo/gvfs,halfline/gvfs,gicmo/gvfs,cpatulea/gvfs,cpatulea/gvfs,xkahn/gvfs-cmis,gicmo/gvfs