Skip to content
This repository was archived by the owner on May 4, 2020. It is now read-only.

Commit db8662a

Browse files
author
Long Ho
committed
fix(intl-messageformat): change ErrorCode to string enum
1 parent 6111718 commit db8662a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/intl-messageformat/src/error.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
export const enum ErrorCode {
22
// When we have a placeholder but no value to format
3-
MISSING_VALUE,
3+
MISSING_VALUE = 'MISSING_VALUE',
44
// When value supplied is invalid
5-
INVALID_VALUE,
5+
INVALID_VALUE = 'INVALID_VALUE',
66
// When we need specific Intl API but it's not available
7-
MISSING_INTL_API,
7+
MISSING_INTL_API = 'MISSING_INTL_API',
88
}
99

1010
export class FormatError extends Error {

0 commit comments

Comments
 (0)