63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# File 'lib/sym/application.rb', line 63
def execute
process_output(execute!)
rescue ::OpenSSL::Cipher::CipherError => e
{ reason: 'Invalid key provided',
exception: e }
rescue Sym::Errors::Error => e
{ reason: e.class.name.gsub(/.*::/, '').underscore.humanize.downcase,
exception: e }
rescue TypeError => e
if e.message =~ /marshal/m
{ reason: 'Corrupt source data or invalid/corrupt key provided',
exception: e }
else
{ exception: e }
end
rescue StandardError => e
{ exception: e }
end
|