astroboa-cli 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -416,7 +416,7 @@ private
416
416
  external_schemas_validator = Nokogiri::XML::Schema(File.read(domain_model_file))
417
417
  puts 'Check if domain model properly loads and uses external schemas (i.e. astroboa model schemas + user defined schemas): OK'
418
418
  true
419
- rescue Exception => e
419
+ rescue => e
420
420
  puts 'Check if domain model is properly loading and using external schemas (i.e. astroboa model schemas + user defined schemas): Errors found!'
421
421
  puts external_schemas_validator.errors if external_schemas_validator
422
422
  puts e.message
@@ -90,7 +90,7 @@ class AstroboaCLI::Command::Repository < AstroboaCLI::Command::Base
90
90
  # save repo configuration into astroboa server config file
91
91
  add_repo_conf_to_server_conf(server_configuration, repository_name)
92
92
 
93
- rescue Exception => e
93
+ rescue => e
94
94
  display %(An error has occured \n The error is: '#{e.to_s}' \n The error trace is: \n #{e.backtrace.join("\n")})
95
95
  display %(Repository configuration, the db and the related directories will be removed)
96
96
  unconfigure_astroboa_repo(repos_dir, repository_name)
@@ -509,11 +509,7 @@ module AstroboaCLI
509
509
  end
510
510
  rescue PG::Error => e
511
511
  display %(An error has occured during the creation of postgres database "#{database_name}")
512
- display "The error is: #{res.error_message}"
513
- display %(The error trace is \n #{e.backtrace.join("\n")})
514
- raise
515
- rescue
516
- display %(An error has occured during the creation of postgres database "#{database_name}")
512
+ display %(The error is: "#{e.message}")
517
513
  display %(The error trace is \n #{e.backtrace.join("\n")})
518
514
  raise
519
515
  ensure
@@ -552,11 +548,7 @@ module AstroboaCLI
552
548
 
553
549
  rescue PG::Error => e
554
550
  display %(An error has occured during the deletion of postgres database "#{database_name}")
555
- display "The error is: #{res.error_message}"
556
- display %(The error trace is \n #{e.backtrace.join("\n")})
557
- raise
558
- rescue
559
- display %(An error has occured during the deletion of postgres database "#{database_name}")
551
+ display %(The error is: "#{e.message}")
560
552
  display %(The error trace is \n #{e.backtrace.join("\n")})
561
553
  raise
562
554
  ensure
@@ -1,3 +1,3 @@
1
1
  module AstroboaCLI
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: astroboa-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-11-06 00:00:00.000000000 Z
13
+ date: 2012-11-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: progressbar