Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated text in alert that's showed when #execute fails.

  • Loading branch information...
commit 84522bab73e12b224a8ab543d58f4553af2093a8 1 parent a3d55b5
@alloy alloy authored
Showing with 3 additions and 2 deletions.
  1. +1 −0  PassengerPref.rb
  2. +2 −2 shared_passenger_behaviour.rb
View
1  PassengerPref.rb
@@ -150,6 +150,7 @@ def tableView_writeRowsWithIndexes_toPasteboard(tableView, rows, pboard)
def authorizationViewDidAuthorize(authorizationView = nil)
OSX::SecurityHelper.sharedInstance.authorizationRef = @authorizationView.authorization.authorizationRef
self.authorized = true
+ execute('/some/blaaa', 'jaja')
end
def authorizationViewDidDeauthorize(authorizationView = nil)
View
4 shared_passenger_behaviour.rb
@@ -6,8 +6,8 @@ module SharedPassengerBehaviour
def execute(command, *args)
if OSX::SecurityHelper.sharedInstance.executeCommand_withArgs(command, args) == 0
alert = OSX::NSAlert.alloc.init
- alert.messageText = 'Something went wrong while trying to save your changes'
- alert.informativeText = "Please check your console.log for further info and file a bug report if it is a bug at:\nhttp://fingertips.lighthouseapp.com/projects/13022"
+ alert.messageText = 'Your changes couldn’t be saved'
+ alert.informativeText = "See the Console log for details.\nYou can file a bug report at:\nhttp://fingertips.lighthouseapp.com/projects/13022"
alert.objc_send(
:beginSheetModalForWindow, PrefPanePassenger.sharedInstance.mainView.window,
:modalDelegate, nil,
Please sign in to comment.
Something went wrong with that request. Please try again.