diff --git a/lib/swagger.js b/lib/swagger.js index 2d04d8a05..84d3442b4 100644 --- a/lib/swagger.js +++ b/lib/swagger.js @@ -76,8 +76,8 @@ exports.run = function({ args, opts }) { reject( new Error( - 'We were unable to locate a Swagger or OpenAPI file to upload.\n' + - "Don't worry, it's easy to get started! Run `rdme oas init` to get started.", + "We couldn't find a Swagger or OpenAPI file.\n\n" + + 'Run `rdme swagger ./path/to/file` to upload an existing file or `rdme oas init` to create a fresh one!', ), ); }); diff --git a/test/swagger.test.js b/test/swagger.test.js index 621429eb6..e3331d16d 100644 --- a/test/swagger.test.js +++ b/test/swagger.test.js @@ -31,8 +31,8 @@ describe('swagger command', () => { it('should error if no file was provided or able to be discovered', () => { expect(swagger([], { key })).rejects.toThrow( - 'We were unable to locate a Swagger or OpenAPI file to upload.\n' + - "Don't worry, it's easy to get started! Run `rdme oas init` to get started.", + "We couldn't find a Swagger or OpenAPI file.\n\n" + + 'Run `rdme swagger ./path/to/file` to upload an existing file or `rdme oas init` to create a fresh one!', ); });