Skip to content

[Feature Request] WAM should return error code in hexadecimal #778

Open
@jiasli

Description

@jiasli

MSAL client type

Public

Problem Statement

Currently, WAM returns error code in decimal, resulting in negative numbers, such as -2147023584, -2147221164. Their corresponding hexadecimal values are 0x80070520, 0x80040154.

Even https://aka.ms/errors recommends using hex:

🤔 Inverting error code: query was -2147221164 which is more commonly expressed as 0x80040154.

In a search engine, - usually means "not to include". Searching for -2147221164 gives no result:

https://www.google.com/search?q=-2147221164

image

Proposed solution

WAM should return error code in hexadecimal.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions