Skip to content

Commit

Permalink
Include "custom" in usage message, use qerror
Browse files Browse the repository at this point in the history
  • Loading branch information
lethosor committed Dec 21, 2017
1 parent cff59fb commit 922aa79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions exportlegends.lua
Original file line number Diff line number Diff line change
Expand Up @@ -825,10 +825,11 @@ if dfhack.gui.getCurFocus() == "legends" or dfhack.gui.getCurFocus() == "dfhack/
export_detailed_maps()
elseif args[1] == "sites" then
export_site_maps()
else dfhack.printerr('Valid arguments are "all", "info", "maps" or "sites"')
else
qerror('Valid arguments are "all", "info", "custom", "maps" or "sites"')
end
elseif args[1] == "maps" and dfhack.gui.getCurFocus() == "export_graphical_map" then
export_detailed_maps()
else
dfhack.printerr('Exportlegends must be run from the main legends view')
qerror('Exportlegends must be run from the main legends view')
end

0 comments on commit 922aa79

Please sign in to comment.