From e0f0537aa2709df1be2c5ad9ed5513164e657ebe Mon Sep 17 00:00:00 2001 From: Jason Perkins Date: Thu, 17 Jan 2013 13:20:05 -0500 Subject: [PATCH] Move "ng" deprecation warning to stderr to increase visibility --- src/_premake_main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_premake_main.lua b/src/_premake_main.lua index 9f2156e1..0d656f2d 100644 --- a/src/_premake_main.lua +++ b/src/_premake_main.lua @@ -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