<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Tidy up llvm-ar's error messages"
   href="https://bugs.llvm.org/show_bug.cgi?id=40244">40244</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Tidy up llvm-ar's error messages
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>llvm-ar
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jh7370.2008@my.bristol.ac.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>llvm-ar is not very consistent in some of its error messages, and in some cases
produces output that is not syntactically correct (i.e. extra new lines,
spurious trailing fullstops and exclamation marks, that sort of thing).

For example, the performOperation function has a call to fail() and two to
failIfError(). In two out of three of these calls, the message passed into the
function is a local error message, with std::error_code::message() appeneded,
followed by an exclamation mark. The latter prints a full stop and new line (at
least on my version of Windows). fail and failIfError themselves also append
".\n", so you end up with an error message that looks something like the
following:

error: some text: the error message.
!.

Which is obviously needs a bit of improvement. These were the only cases with
issues that I found with a quick glance, but there could be others.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>