Skip to content

Commit 8d513ba

Browse files
committed
fix: Make location writeable so ember-cli-htmlbars doesn't choke.
1 parent 5332c0c commit 8d513ba

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/@css-blocks/core/src/errors.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ interface HasPrefix {
2626
export class CssBlockError extends Error {
2727
static prefix = "Error";
2828
origMessage: string;
29-
private _location?: ErrorLocation;
29+
location?: ErrorLocation;
3030
constructor(message: string, location?: ErrorLocation) {
3131
super(message);
3232
this.origMessage = message;
33-
this._location = location;
33+
this.location = location;
3434
super.message = this.annotatedMessage();
3535
}
3636

@@ -43,10 +43,6 @@ export class CssBlockError extends Error {
4343
return this.origMessage;
4444
}
4545
}
46-
47-
get location(): ErrorLocation | undefined {
48-
return this._location;
49-
}
5046
}
5147

5248
function hasSourcePosition(filenameOrPosition: string | ErrorWithoutPosition | ErrorWithPosition | SourceLocation.SourceLocation): filenameOrPosition is SourceLocation.SourceLocation {

0 commit comments

Comments
 (0)