Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Commit

Permalink
Updated text in alert that's showed when #execute fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
alloy committed Jun 20, 2008
1 parent a3d55b5 commit 84522ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions PassengerPref.rb
Expand Up @@ -150,6 +150,7 @@ def tableView_writeRowsWithIndexes_toPasteboard(tableView, rows, pboard)
def authorizationViewDidAuthorize(authorizationView = nil) def authorizationViewDidAuthorize(authorizationView = nil)
OSX::SecurityHelper.sharedInstance.authorizationRef = @authorizationView.authorization.authorizationRef OSX::SecurityHelper.sharedInstance.authorizationRef = @authorizationView.authorization.authorizationRef
self.authorized = true self.authorized = true
execute('/some/blaaa', 'jaja')
end end


def authorizationViewDidDeauthorize(authorizationView = nil) def authorizationViewDidDeauthorize(authorizationView = nil)
Expand Down
4 changes: 2 additions & 2 deletions shared_passenger_behaviour.rb
Expand Up @@ -6,8 +6,8 @@ module SharedPassengerBehaviour
def execute(command, *args) def execute(command, *args)
if OSX::SecurityHelper.sharedInstance.executeCommand_withArgs(command, args) == 0 if OSX::SecurityHelper.sharedInstance.executeCommand_withArgs(command, args) == 0
alert = OSX::NSAlert.alloc.init alert = OSX::NSAlert.alloc.init
alert.messageText = 'Something went wrong while trying to save your changes' alert.messageText = 'Your changes couldn’t be saved'
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.informativeText = "See the Console log for details.\nYou can file a bug report at:\nhttp://fingertips.lighthouseapp.com/projects/13022"
alert.objc_send( alert.objc_send(
:beginSheetModalForWindow, PrefPanePassenger.sharedInstance.mainView.window, :beginSheetModalForWindow, PrefPanePassenger.sharedInstance.mainView.window,
:modalDelegate, nil, :modalDelegate, nil,
Expand Down

0 comments on commit 84522ba

Please sign in to comment.