{"id":16843,"date":"2009-09-04T10:00:00","date_gmt":"2009-09-04T10:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2009\/09\/04\/reading-the-error-message-carefully-can-help-you-see-how-the-computer-misinterpreted-what-you-typed\/"},"modified":"2009-09-04T10:00:00","modified_gmt":"2009-09-04T10:00:00","slug":"reading-the-error-message-carefully-can-help-you-see-how-the-computer-misinterpreted-what-you-typed","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20090904-00\/?p=16843","title":{"rendered":"Reading the error message carefully can help you see how the computer misinterpreted what you typed"},"content":{"rendered":"<p>\nThe details have been changed since they aren&#8217;t important\nbut the lesson is the same.\n<\/p>\n<p>\nA customer had the following problem with a command-line tool:\n<\/p>\n<blockquote CLASS=\"q\">\n<p>\nI&#8217;ve created a taglist but I can&#8217;t seem to get it to work\nwith the <code>track<\/code> command.\nWhen I ask it to track the taglist, it can&#8217;t find it.\nBut if I ask for all my taglists, there it is.\n<\/p>\n<pre>\nC:\\&gt; show taglists\nYou have 2 taglists:\n active (8 tags)\n closed (6 tags)\nC:\\&gt; track active\nNo such tag \"active\".\n<\/pre>\n<\/blockquote>\n<p>\nYes, the <code>track<\/code> command isn&#8217;t working,\nbut let&#8217;s take a closer look at that error message.\nIt says <code>no such tag<\/code>.\nStrange, because you are trying to track a taglist, not a tag.\nShouldn&#8217;t the error message be\n<code>no such taglist<\/code>?\n<\/p>\n<p>\nAha, the problem is that the <code>track<\/code> command takes\na list of tags on the command line, not a taglist name.\nThe error message is correct:\nThere is no such tag called <code>active<\/code>.\nBecause <code>active<\/code> isn&#8217;t a tag name;\nit&#8217;s a taglist name.\n<\/p>\n<pre>\nC:\\&gt; track -taglist active\nTaglist \"active\" is now being tracked.\n<\/pre>\n<p>\nToday&#8217;s lesson:\nLook carefully at what the error message complaining about;\nit may not be what you expect.\n<\/p>\n<p>\n<b>Exercise<\/b>:\nDiagnose the following error message, given no information\nabout the program being used beyond what is presented here:\n<\/p>\n<blockquote CLASS=\"m\">\n<p>\nI accidentally made a change (transaction number 12345)\nto the file XYZ,\nand I want to back it out.\nBut when I run the <i>backout<\/i> command, I get an error.\nCan somebody help me?\n<\/p>\n<pre>\nC:\\&gt; backout 12345\n12345 - file not found\n<\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>The details have been changed since they aren&#8217;t important but the lesson is the same. A customer had the following problem with a command-line tool: I&#8217;ve created a taglist but I can&#8217;t seem to get it to work with the track command. When I ask it to track the taglist, it can&#8217;t find it. But [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[25],"class_list":["post-16843","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>The details have been changed since they aren&#8217;t important but the lesson is the same. A customer had the following problem with a command-line tool: I&#8217;ve created a taglist but I can&#8217;t seem to get it to work with the track command. When I ask it to track the taglist, it can&#8217;t find it. But [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/16843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=16843"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/16843\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=16843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=16843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=16843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}