Skip to content

Commit

Permalink
Fix error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jan 12, 2015
1 parent 08c8bbd commit 0bdf937
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ingo/lib/Script/Util.php
Expand Up @@ -48,7 +48,7 @@ static public function activate($scripts, $deactivate = false)
? _("There was an error deactivating the script.")
: _("There was an error activating the script.");
throw new Ingo_Exception(
sprintf(_("%s The driver said: %s"), $msg, $e)
sprintf(_("%s The driver said: %s"), $msg, $e->getMessage())
);
}
}
Expand Down Expand Up @@ -81,7 +81,7 @@ static public function update($auto_update = true)
self::activate($script->generate());
} catch (Ingo_Exception $e) {
throw new Ingo_Exception(
sprintf(_("Script not updated: %s"), $e)
sprintf(_("Script not updated: %s"), $e->getMessage())
);
}
}
Expand Down

0 comments on commit 0bdf937

Please sign in to comment.