     }
 
     tmp.dir (err, tmpDir) =>
+      throw err if err?
       @uploadDir = tmpDir
       fs.writeFileSync(tmpDir + '/file.txt', 'hello')
       fs.writeFileSync(tmpDir + '/other.coffee', 'f = (args...) ->\n  args.slice(1)\n')





  it 'defaults region to us-east-1 if no region is given', (done) ->
    output = stringstream.createStream()
    @expects = [

      output: output
      createAwsClient: @mockAws
    , (err) =>
      throw err if err?
      output.toString().should.eql """


