lib/pg_ldap_sync.rb in pg-ldap-sync-0.3.0 vs lib/pg_ldap_sync.rb in pg-ldap-sync-0.4.0
- old
+ new
@@ -1,15 +1,17 @@
require "pg_ldap_sync/application"
+require "pg_ldap_sync/compat"
require "pg_ldap_sync/version"
module PgLdapSync
class LdapError < RuntimeError
end
class ApplicationExit < RuntimeError
attr_reader :exitcode
- def initialize(exitcode)
+ def initialize(exitcode, error=nil)
+ super(error)
@exitcode = exitcode
end
end
class InvalidConfig < ApplicationExit