<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/sketches/exceptions/editor_not_defined.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -5,6 +5,7 @@ README.txt
 lib/sketches.rb
 lib/sketches/exceptions.rb
 lib/sketches/exceptions/unknown_sketch.rb
+lib/sketches/exceptions/editor_not_defined.rb
 lib/sketches/config.rb
 lib/sketches/temp_sketch.rb
 lib/sketches/sketch.rb</diff>
      <filename>Manifest.txt</filename>
    </modified>
    <modified>
      <diff>@@ -21,3 +21,4 @@
 #
 
 require 'sketches/exceptions/unknown_sketch'
+require 'sketches/exceptions/editor_not_defined'</diff>
      <filename>lib/sketches/exceptions.rb</filename>
    </modified>
    <modified>
      <diff>@@ -20,6 +20,7 @@
 #++
 #
 
+require 'sketches/exceptions/editor_not_defined'
 require 'sketches/config'
 require 'sketches/temp_sketch'
 
@@ -76,7 +77,9 @@ module Sketches
     # Spawns the Sketches.editor with the path of the sketch.
     #
     def edit
-      if Config.editor.kind_of?(Proc)
+      if Config.editor.nil?
+        raise(EditorNotDefined,&quot;no editor has defined via ENV['EDITOR'] or Sketches.config&quot;,caller)
+      elsif Config.editor.kind_of?(Proc)
         cmd = Config.editor.call(@path)
       else
         cmd = &quot;#{Config.editor} #{@path}&quot;</diff>
      <filename>lib/sketches/sketch.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3f734a1d9392567f4815cc3765b6913aa17f8d27</id>
    </parent>
  </parents>
  <author>
    <name>postmodern</name>
    <email>postmodern.mod3@gmail.com</email>
  </author>
  <url>http://github.com/postmodern/sketches/commit/dc5c6484c907952095e8dc00aca4ca0d886229f9</url>
  <id>dc5c6484c907952095e8dc00aca4ca0d886229f9</id>
  <committed-date>2009-05-27T01:19:01-07:00</committed-date>
  <authored-date>2009-05-27T01:19:01-07:00</authored-date>
  <message>Added the EditorNotDefined exception for when no editor has been specified.</message>
  <tree>f619bfe8e7bb63bc9faa0f0c4d26b417ebd885ff</tree>
  <committer>
    <name>postmodern</name>
    <email>postmodern.mod3@gmail.com</email>
  </committer>
</commit>
