{"id":356,"date":"2006-06-16T08:36:33","date_gmt":"2006-06-16T13:36:33","guid":{"rendered":"http:\/\/ywwg.com\/wordpress\/?p=356"},"modified":"2006-06-16T08:36:33","modified_gmt":"2006-06-16T13:36:33","slug":"apples-solution-to-confusing-error-messages","status":"publish","type":"post","link":"https:\/\/ywwg.com\/wordpress\/archives\/356","title":{"rendered":"Apple&#8217;s solution to confusing error messages:"},"content":{"rendered":"<p>Just don&#8217;t show them!<\/p>\n<p>If you try to eject a CD or DVD and the drive is still in use by another program, an operating system can&#8217;t eject the disc because that might crash that program.  In GNOME, a helpful error message is generated:<\/p>\n<blockquote><p>Unable to eject media<br \/>\nDetails:<br \/>\numount: \/media\/dvdrecorder: device is busy<br \/>\numount: \/media\/dvdrecorder: device is busy<br \/>\nError: umount failed<br \/>\neject: unmount of `\/media\/dvdrecorder&#8217; failed<\/p><\/blockquote>\n<p>This error is a little confusing, because the first line tells you the error, but the reason is buried in the raw log text.  It would be nicer if it just said &#8220;Unable to eject media, disc is in use by another program.&#8221;  But that&#8217;s still not great, because it doesn&#8217;t tell you <em>which<\/em> program is using the drive.<\/p>\n<p>On Mac OSX, their solution is: just don&#8217;t show an error.  You can push eject as much as you like, and the big eject icon will appear on the screen, but else nothing happens.  Problem solved!<\/p>\n<p>In another case, we have a fibre storage system that has an artificial read-only mode.  In other words, a mounted drive appears to be writable but actually isn&#8217;t.  I&#8217;m told on windows if you try to write to that drive you get an error.  Probably &#8220;Unable to write to this drive.&#8221;<\/p>\n<p>On OSX, it lets you write to the drive.  But it doesn&#8217;t actually work.  In fact, you can somehow read the files on that drive to supposedly confirm that they are there.  But they are not.  The next time you unmount \/ remount, or reboot, the files are gone.  No error message, no indication of any kind that the procedure failed.  I&#8217;ve also seen this problem with regular AFP network drives, where a file is written to a disconnected share and there&#8217;s no indication of a failure.<\/p>\n<p>I can understand hiding weird messages from users, but sometimes an error message would make my life as an administrator a lot easier.  We once lost 2 days of work to the &#8220;haha you thought you were writing to the drive&#8221; error, so this isn&#8217;t just an incidental problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just don&#8217;t show them! If you try to eject a CD or DVD and the drive is still in use by another program, an operating system can&#8217;t eject the disc because that might crash that program. In GNOME, a helpful error message is generated: Unable to eject media Details: umount: \/media\/dvdrecorder: device is busy umount: &hellip; <a href=\"https:\/\/ywwg.com\/wordpress\/archives\/356\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Apple&#8217;s solution to confusing error messages:&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,5],"tags":[],"_links":{"self":[{"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/posts\/356"}],"collection":[{"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/comments?post=356"}],"version-history":[{"count":0,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/posts\/356\/revisions"}],"wp:attachment":[{"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/media?parent=356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/categories?post=356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ywwg.com\/wordpress\/wp-json\/wp\/v2\/tags?post=356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}