At 04:47 AM 2/13/2006, John Stanton wrote: >Sigh... what is wrong with a message "disk full" when the disk space is >exhausted? Why is simple and to the point a problem?
The "disk full" error is actually "write failed". Disk full may be the expected reason for a write to fail, but there are many others, not all even documented. Under most circumstances, you'll look at the disk space situation and decide "oh sure"; but what if your reaction is "huh?" and all the information you have is "disk full". For example, some operating systems support disk quotas, and a write will fail when you exceed the quota. In that case, if you're lucky, the error code might mean "quota exceeded". If all you got from sqlite is a generic disk full message, not based on the actual error code, you're still clueless. -- I'm not saying sqlite should to try to diagnose every possible failure, but when the unexpected inevitably happens, sqlite should make as much information as possible available to the host application. It's all part of building reliable and debuggable applications.