forked from glenux/mfm
fix: handle mount errors (with the right message)
This commit is contained in:
parent
fd9829c283
commit
041550cc0f
4 changed files with 10 additions and 14 deletions
|
@ -42,9 +42,14 @@ module GX::Models::Concerns
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
yield
|
result_status = yield
|
||||||
|
|
||||||
|
if result_status.success?
|
||||||
puts "Models #{name} is now available on #{mount_point_safe}".colorize(:green)
|
puts "Models #{name} is now available on #{mount_point_safe}".colorize(:green)
|
||||||
|
else
|
||||||
|
puts "Error mounting the vault".colorize(:red)
|
||||||
|
return
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -32,10 +32,7 @@ module GX::Models
|
||||||
output: STDOUT,
|
output: STDOUT,
|
||||||
error: STDERR
|
error: STDERR
|
||||||
)
|
)
|
||||||
unless process.wait.success?
|
return process.wait
|
||||||
puts "Error mounting the vault".colorize(:red)
|
|
||||||
return
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -32,10 +32,7 @@ module GX::Models
|
||||||
output: STDOUT,
|
output: STDOUT,
|
||||||
error: STDERR
|
error: STDERR
|
||||||
)
|
)
|
||||||
unless process.wait.success?
|
return process.wait
|
||||||
puts "Error mounting the filesystem".colorize(:red)
|
|
||||||
return
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -39,10 +39,7 @@ module GX::Models
|
||||||
output: STDOUT,
|
output: STDOUT,
|
||||||
error: STDERR
|
error: STDERR
|
||||||
)
|
)
|
||||||
unless process.wait.success?
|
return process.wait
|
||||||
puts "Error mounting the filesystem".colorize(:red)
|
|
||||||
return
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue