Skip to content

Commit

Permalink
show warning message when ACR don't have image (#412)
Browse files Browse the repository at this point in the history
* show warning message when ACR don't have image

* optimize code

* Update code

* Update code

* Update version to 1.11.0-rc3
  • Loading branch information
SLdragon authored Mar 20, 2019
1 parent 65f7b1e commit ff10c84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "azure-iot-edge",
"displayName": "Azure IoT Edge",
"description": "Develop, deploy, debug, and manage your IoT Edge solution",
"version": "1.11.0-rc2",
"version": "1.11.0-rc3",
"publisher": "vsciot-vscode",
"aiKey": "95b20d64-f54f-4de3-8ad5-165a75a6c6fe",
"icon": "logo.png",
Expand Down
7 changes: 7 additions & 0 deletions src/container/acrManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ export class AcrManager {

const repoItems: vscode.QuickPickItem[] = [];
const repos = JSON.parse(catalogResponse).repositories;

if (!repos) {
const error: any = new Error("There is no repository in the registry.");
error.statusCode = 404;
throw error;
}

repos.map((repo) => {
repoItems.push({
label: repo,
Expand Down

0 comments on commit ff10c84

Please sign in to comment.