 
     for errorString, niceMessage of HANDLED_ERRORS
       if content.indexOf(errorString) > -1
-        modal = new kd.ModalView
+        modal = new ContentModal
+          cssClass       : 'content-modal'
           title          : 'An error occurred'
-          content        : "#{niceMessage} <br/><br/> You can see more detailed error message in stack build output."
+          content        : "<p>#{niceMessage}</p>"
           overlay        : yes
           overlayOptions :
             cssClass     : 'second-overlay'

kd = require 'kd'

# You can find the list of AWS error messages here
# http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html
VPC_WIKI_URL = 'http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html'

          buttons        :
            close        :
              title      : 'Close'
              cssClass   : 'solid medium'
              callback   : -> modal.destroy()

        break
