Commit 0516a6b6 authored by Isabella Almeida da Silva's avatar Isabella Almeida da Silva
Browse files

[SOMA-3827][SOMA-4077] Mostrar mensagem de erro quando sga_name não for...

[SOMA-3827][SOMA-4077] Mostrar mensagem de erro quando sga_name não for encontrado no arquivo .cfg múltiplo
Showing with 4 additions and 0 deletions
+4 -0
......@@ -28,7 +28,11 @@ function configuration.read(filename, sga_name)
-- TODO: O que fazer nesse caso? Avisar que foi ignorado?
config.sga_name = nil
end
local config_data = config.sga[sga_name]
if not config_data then
return nil, "SGA configuration "..sga_name.." not found on config file "..filename
end
config.sga = nil
config, err = configuration.get(config_data, filename, config)
if not config then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment