Skip to content

Commit

Permalink
[INTERNAL] AbstractAdapter: Use string templates
Browse files Browse the repository at this point in the history
  • Loading branch information
flovogt committed Dec 16, 2022
1 parent f44d050 commit a3cc081
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/adapters/AbstractAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ class AbstractAdapter extends AbstractReaderWriter {

_write(resource) {
if (!resource.getPath().startsWith(this._virBasePath)) {
throw new Error("The path of the resource '" + resource.getPath() + "' does not starts with " +
"the configured virtual base path of the adapter '" + this._virBasePath + "'");
throw new Error(`The path of the resource '${resource.getPath()}' does not starts with ` +
`the configured virtual base path of the adapter '${this._virBasePath}'`);
}

if (this._project) {
Expand Down

0 comments on commit a3cc081

Please sign in to comment.