diff --git a/index.js b/index.js index cd092623f..ff62fd6a7 100644 --- a/index.js +++ b/index.js @@ -160,7 +160,7 @@ class ServerlessPlugin { type: 'string', }, path: { - usage: 'Path to JSON or YAML file holding input data (use either this or --data)', + usage: 'Path to JSON file holding input data (use either this or --data)', shortcut: 'p', type: 'string', }, diff --git a/plugin/layers.js b/plugin/layers.js index f0d9c45c8..0d91d9898 100644 --- a/plugin/layers.js +++ b/plugin/layers.js @@ -23,7 +23,8 @@ function listLayers(serverless, log) { } function padString(str, length) { - return str.padEnd(length, ' '); + // The value may be a number (layer versions are numbers in layers.json) + return String(str).padEnd(length, ' '); } module.exports = {listLayers};