From 102f5a44802c8fa1b582483ab40323dd64b152c0 Mon Sep 17 00:00:00 2001 From: Tjatse Date: Sat, 20 Dec 2014 13:06:54 +0800 Subject: [PATCH] fix: `pm2 desc` args could be array. --- lib/CliUx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CliUx.js b/lib/CliUx.js index bd97237d1..e6dd91b52 100644 --- a/lib/CliUx.js +++ b/lib/CliUx.js @@ -65,7 +65,7 @@ UX.describeTable = function(process) { { 'name': pm2_env.name }, { 'id' : pm2_env.pm_id }, { 'path' : pm2_env.pm_exec_path }, - { 'args' : pm2_env.args ? JSON.parse(pm2_env.args.replace(/'/g, '"')).join(' ') : '' }, + { 'args' : pm2_env.args ? (typeof pm2_env.args == 'string' ? JSON.parse(pm2_env.args.replace(/'/g, '"')):pm2_env.args).join(' ') : '' }, { 'exec cwd' : pm2_env.pm_cwd }, { 'error log path' : pm2_env.pm_err_log_path }, { 'out log path' : pm2_env.pm_out_log_path },