File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
packages/fx-core/src/component/m365 Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ export const outlookCopilotAppId = "d870f6cd-4aa5-4d42-9626-ab690c041429";
11
11
export const outlookBaseUrl = "https://outlook.office.com" ;
12
12
export const officeBaseUrl = "https://www.office.com" ;
13
13
export const advancedDASettingUrl = "https://aka.ms/atk-actions/teamsapp-extendToM365" ;
14
+ export const M365HelpLink = "https://aka.ms/teamsfx-actions/teamsapp-extendToM365" ;
Original file line number Diff line number Diff line change 4
4
import { UserError } from "@microsoft/teamsfx-api" ;
5
5
6
6
import { getDefaultString , getLocalizedString } from "../../common/localizeUtils" ;
7
+ import { M365HelpLink } from "./constants" ;
7
8
8
9
export class NotExtendedToM365Error extends UserError {
9
10
constructor ( source : string ) {
@@ -12,7 +13,7 @@ export class NotExtendedToM365Error extends UserError {
12
13
name : "NotExtendedToM365Error" ,
13
14
message : getDefaultString ( "error.m365.NotExtendedToM365Error" ) ,
14
15
displayMessage : getLocalizedString ( "error.m365.NotExtendedToM365Error" ) ,
15
- helpLink : "https://aka.ms/teamsfx-actions/teamsapp-extendToM365" ,
16
+ helpLink : M365HelpLink ,
16
17
} ) ;
17
18
}
18
19
}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ import { NotExtendedToM365Error } from "./errors";
35
35
import { M365AppDefinition , M365AppEntity } from "./interface" ;
36
36
import { MosServiceEndpoint } from "./serviceConstant" ;
37
37
import { getDefaultString , getLocalizedString } from "../../common/localizeUtils" ;
38
- import { advancedDASettingUrl } from "./constants" ;
38
+ import { advancedDASettingUrl , M365HelpLink } from "./constants" ;
39
39
40
40
const M365ErrorSource = "M365" ;
41
41
const M365ErrorComponent = "PackageService" ;
@@ -257,7 +257,11 @@ export class PackageService {
257
257
if ( error . response ) {
258
258
error = this . traceError ( error ) ;
259
259
}
260
- throw assembleError ( error , M365ErrorSource ) ;
260
+ const err = assembleError ( error , M365ErrorSource ) ;
261
+ if ( err instanceof UserError ) {
262
+ err . helpLink = M365HelpLink ;
263
+ }
264
+ throw err ;
261
265
}
262
266
}
263
267
You can’t perform that action at this time.
0 commit comments