Skip to content

Commit

Permalink
Print exception message
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
  • Loading branch information
azeey committed Nov 10, 2023
1 parent 913c8a0 commit 9b730b5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cmd/cmdsdformat.rb.in
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@ class Cmd

# Read the plugin that handles the command.
if Pathname.new(LIBRARY_NAME).absolute?
# If the first character is a slash, we'll assume that we've been given an
# absolute path to the library. This is only used during test mode.
plugin = LIBRARY_NAME
else
# We're assuming that the library path is relative to the current
Expand All @@ -189,8 +187,9 @@ class Cmd

begin
Importer.dlload plugin
rescue DLError
rescue DLError => error
puts "Library error: [#{plugin}] not found."
puts "DLError: #{error.message}"
exit(-1)
end

Expand Down

0 comments on commit 9b730b5

Please sign in to comment.