Move "ng" deprecation warning to stderr to increase visibility
This commit is contained in:
parent
b1c5e0dd20
commit
e0f0537aa2
@ -1,7 +1,7 @@
|
||||
--
|
||||
-- _premake_main.lua
|
||||
-- Script-side entry point for the main program logic.
|
||||
-- Copyright (c) 2002-2012 Jason Perkins and the Premake project
|
||||
-- Copyright (c) 2002-2013 Jason Perkins and the Premake project
|
||||
--
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@
|
||||
-- The "next-gen" actions have now replaced their deprecated counterparts.
|
||||
-- Provide a warning for a little while before I remove them entirely.
|
||||
if _ACTION and _ACTION:endswith("ng") then
|
||||
print(string.format("** Warning: '%s' has been deprecated; use '%s' instead", _ACTION, _ACTION:sub(1, -3)))
|
||||
io.stderr:write(string.format("** Warning: '%s' has been deprecated; use '%s' instead\n", _ACTION, _ACTION:sub(1, -3)))
|
||||
end
|
||||
|
||||
-- Set up the environment for the chosen action early, so side-effects
|
||||
|
Loading…
Reference in New Issue
Block a user