From f192933e9a6b1779d856c019128c3718cea9040f Mon Sep 17 00:00:00 2001 From: Katy Bowman Date: Mon, 9 Dec 2024 14:28:22 -0500 Subject: [PATCH] fix: update not found error message in base class and tests --- src/lib/base.ts | 2 +- test/lib/base.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/base.ts b/src/lib/base.ts index 228b21c..6cfcff7 100644 --- a/src/lib/base.ts +++ b/src/lib/base.ts @@ -9,7 +9,7 @@ export class NotFound extends Error { constructor(addonIdentifier: string, appIdentifier?: string) { const message = heredoc` We can’t find a model resource called ${color.yellow(addonIdentifier)}${appIdentifier ? ` on ${color.app(appIdentifier)}` : ''}. - Run ${color.cmd(`heroku ai:models:info --app ${appIdentifier ? appIdentifier : ''}`)} to see a list of model resources. + Run ${color.cmd(`heroku addons --app ${appIdentifier ? appIdentifier : ''}`)} to see a list of model resources. ` super(message) } diff --git a/test/lib/base.test.ts b/test/lib/base.test.ts index 1f1d42a..51a985e 100644 --- a/test/lib/base.test.ts +++ b/test/lib/base.test.ts @@ -153,7 +153,7 @@ describe('attempt a request using the Heroku AI client', function () { const {message} = error as Error expect(stripAnsi(message)).to.equal(heredoc` We can’t find a model resource called inference-inexistent-00001. - Run heroku ai:models:info --app to see a list of model resources. + Run heroku addons --app to see a list of model resources. `) } @@ -180,7 +180,7 @@ describe('attempt a request using the Heroku AI client', function () { const {message} = error as Error expect(stripAnsi(message)).to.equal(heredoc` We can’t find a model resource called ${addon1.name} on app2. - Run heroku ai:models:info --app app2 to see a list of model resources. + Run heroku addons --app app2 to see a list of model resources. `) }