You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/azure_devops/azure_devops.app.mjs
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ export default {
51
51
_personalAccessToken(){
52
52
returnthis.$auth.personal_access_token;
53
53
},
54
-
_makeRequest(args={}){
54
+
async_makeRequest(args={}){
55
55
const{
56
56
$ =this,
57
57
url,
@@ -68,7 +68,14 @@ export default {
68
68
? "&"
69
69
: "?";
70
70
config.url+=`api-version=${API_VERSION}`;
71
-
returnaxios($,config);
71
+
try{
72
+
returnawaitaxios($,config);
73
+
}catch(error){
74
+
if(error.response?.status===401&&!useOAuth){
75
+
thrownewConfigurationError("Azure DevOps Personal Access Token is required for this operation. Please verify that your personal access token is correct.");
0 commit comments