[Philip] Add more error logging