<html>
    <head>
      <base href="https://bugs.webkit.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 - webkit-patch should not explode when $EDITOR is set incorrectly"
   href="https://bugs.webkit.org/show_bug.cgi?id=147884">147884</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>webkit-patch should not explode when $EDITOR is set incorrectly
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>528+ (Nightly build)
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Tools / Tests
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>bburg&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>STEPS TO REPRODUCE:

EDITOR=asdfjkl Tools/Scripts/webkit-patch upload -b &lt;some-bug&gt;


EXPECTED:

 * Complains about not being able to edit changelogs, and gets on with life.

ACTUAL:

 * A big, long, useless stack trace, and cannot continue uploading patch.


Traceback (most recent call last):
  File &quot;/Users/bburg/repos/webkit/OpenSource/Tools/Scripts/webkit-patch&quot;, line 84, in &lt;module&gt;
    main()
  File &quot;/Users/bburg/repos/webkit/OpenSource/Tools/Scripts/webkit-patch&quot;, line 79, in main
    WebKitPatch(os.path.abspath(__file__)).main()
  File &quot;/Users/bburg/repos/webkit/OpenSource/Tools/Scripts/webkitpy/tool/multicommandtool.py&quot;, line 305, in main
    result = command.check_arguments_and_execute(options, args, self)
  File &quot;/Users/bburg/repos/webkit/OpenSource/Tools/Scripts/webkitpy/tool/multicommandtool.py&quot;, line 123, in check_arguments_and_execute
    return self.execute(options, args, tool) or 0
  File &quot;/Users/bburg/repos/webkit/OpenSource/Tools/Scripts/webkitpy/tool/commands/abstractsequencedcommand.py&quot;, line 54, in execute
    self._sequence.run_and_handle_errors(tool, options, state)
  File &quot;/Users/bburg/repos/webkit/OpenSource/Tools/Scripts/webkitpy/tool/commands/stepsequence.py&quot;, line 73, in run_and_handle_errors
    self._run(tool, options, state)
  File &quot;/Users/bburg/repos/webkit/OpenSource/Tools/Scripts/webkitpy/tool/commands/stepsequence.py&quot;, line 67, in _run
    step(tool, options).run(state)
  File &quot;/Users/bburg/repos/webkit/OpenSource/Tools/Scripts/webkitpy/tool/steps/editchangelog.py&quot;, line 35, in run
    self._tool.user.edit_changelog(absolute_paths)
  File &quot;/Users/bburg/repos/webkit/OpenSource/Tools/Scripts/webkitpy/common/system/user.py&quot;, line 148, in edit_changelog
    self.edit(files)
  File &quot;/Users/bburg/repos/webkit/OpenSource/Tools/Scripts/webkitpy/common/system/user.py&quot;, line 129, in edit
    subprocess.call(args + files)
  File &quot;/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py&quot;, line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File &quot;/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py&quot;, line 710, in __init__
    errread, errwrite)
  File &quot;/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py&quot;, line 1335, in _execute_child
    raise child_exception</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>