Add LOGE when failed to truncate the file.
diff --git a/lib/bcc/FileHandle.cpp b/lib/bcc/FileHandle.cpp
index c4c3954..e19d0d1 100644
--- a/lib/bcc/FileHandle.cpp
+++ b/lib/bcc/FileHandle.cpp
@@ -168,7 +168,9 @@
 
 void FileHandle::truncate() {
   if (mFD >= 0) {
-    ftruncate(mFD, 0);
+    if (ftruncate(mFD, 0) != 0) {
+      LOGE("Unable to truncate the file.\n");
+    }
   }
 }