Skip to content

Commit

Permalink
Merge f6e0994 into d1d3a73
Browse files Browse the repository at this point in the history
  • Loading branch information
gcandal committed Sep 17, 2020
2 parents d1d3a73 + f6e0994 commit d0b7628
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/data/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,9 @@ export class ModelStore extends Model {
if (!found && raiseE) {
let message;
if (_isDevel()) {
message = `${this.constructor.name} not found for ${JSON.stringify(params)}`;
message = `${this.name} not found for ${JSON.stringify(params)}`;
} else {
message = `${this.constructor.name} not found`;
message = `${this.name} not found`;
}
throw new NotFoundError(message);
}
Expand Down Expand Up @@ -327,9 +327,9 @@ export class ModelStore extends Model {
if (found.length === 0 && raiseE) {
let message;
if (_isDevel()) {
message = `${this.constructor.name} not found for ${JSON.stringify(params)}`;
message = `${this.name} not found for ${JSON.stringify(params)}`;
} else {
message = `${this.constructor.name} not found`;
message = `${this.name} not found`;
}
throw new NotFoundError(message);
}
Expand Down

0 comments on commit d0b7628

Please sign in to comment.