1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-24 08:45:31 +03:00

Fix error handling in settings.rb:Generator#resolve_types (#6830)

This commit is contained in:
Michel Pastor 2021-04-14 16:47:20 +02:00 committed by GitHub
parent 1ba891d6e1
commit 34c91848fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -988,7 +988,7 @@ class Generator
member["max"] = $1.to_i - 1;
typ = "string"
else
raise "Unknown type #{m[1]} when resolving type for setting #{member["name"]}"
raise "Unknown type #{type} when resolving type for setting #{member["name"]}"
end
dputs "#{member["name"]} type is #{typ}"
member["type"] = typ