Skip to content

Commit

Permalink
remove usage of UnknownMessageType (#19)
Browse files Browse the repository at this point in the history
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
  • Loading branch information
dirk-thomas authored Apr 16, 2019
1 parent 21ca455 commit 11ce0b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
10 changes: 1 addition & 9 deletions rosidl_typesupport_fastrtps_c/bin/rosidl_typesupport_fastrtps_c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import argparse
import os
import sys

from rosidl_parser import UnknownMessageType
from rosidl_typesupport_fastrtps_c import generate_typesupport_fastrtps_c


Expand All @@ -27,14 +26,7 @@ def main(argv=sys.argv[1:]):
help='The location of the file containing the generator arguments')
args = parser.parse_args(argv)

try:
rc = generate_typesupport_fastrtps_c(args.generator_arguments_file)
except UnknownMessageType as e:
print(str(e), file=sys.stderr)
return 1
if rc:
return rc
return 0
return generate_typesupport_fastrtps_c(args.generator_arguments_file)


if __name__ == '__main__':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import argparse
import sys

from rosidl_parser import UnknownMessageType
from rosidl_typesupport_fastrtps_cpp import generate_cpp


Expand All @@ -17,11 +16,7 @@ def main(argv=sys.argv[1:]):
help='The location of the file containing the generator arguments')
args = parser.parse_args(argv)

try:
return generate_cpp(args.generator_arguments_file)
except UnknownMessageType as e:
print(str(e), file=sys.stderr)
return 1
return generate_cpp(args.generator_arguments_file)


if __name__ == '__main__':
Expand Down

0 comments on commit 11ce0b6

Please sign in to comment.