Skip to content

Commit cbf6ab9

Browse files
committed
Tiny tweak
1 parent 87c4dc3 commit cbf6ab9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ typings/**
6161
**/*.js
6262
**/*.map
6363
npm-debug.log*
64+
~$*
6465

6566
# Used to ignore "playlists", but having those checked-in for diffing purposes is very useful, so undoing the ignore:
6667
# playlists/**

config/build.documentation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function getExtractedDataFromSnippet(
134134

135135
let arrayIndex = fullSnippetTextArray.findIndex(text => text.indexOf(targetText) >= 0);
136136
if (arrayIndex < 0) {
137-
throw new Error(`Could not find the text "${targetText}" within snippet "${filename}"`);
137+
throw new Error(`Invalid entry in the metadata mapping file -- snippet function "${row.snippetFunction}" does not exist within snippet "${filename}"`);
138138
}
139139
const functionDeclarationLine = fullSnippetTextArray[arrayIndex];
140140
const functionHasNoParams = functionDeclarationLine.indexOf(targetText + ')') >= 0;

0 commit comments

Comments
 (0)