Added sk::file_error() function