Add function to throw errno
Update vapis
Consolidate error handling code
Fix formatting for GError