diff --git a/src/lib/taDocs/3-client-allFunctions.md b/src/lib/taDocs/3-client-allFunctions.md index ad01ea3..4817816 100644 --- a/src/lib/taDocs/3-client-allFunctions.md +++ b/src/lib/taDocs/3-client-allFunctions.md @@ -35,7 +35,7 @@ The table below shows all of the functions of the taClient. From this point onwa |loadImage()|**STREAMSYNC MORE DOCS REQUIRED** Set the colour image for users in streamsync?|True| |loadSong()|**does this load for specified users, or for a match**Load a song to the users in a match.|True| |on()|This is the standard listener. This is how events such as real time score can be subscribed to.|True| -|once()|**PROBABLY THE SAME AS .ON()???**|True| +|once()|Same as on, except only triggered once.|True| |playSong()|Play the currently loaded song for the specified players.|True| |removeAuthorizedUser()|Remove an authorised user from a tournament.|True| |removeListener()|Remove a listener which was previously subscribed to. Do this when your application terminates.|True| diff --git a/src/routes/api/docs/[slug]/+server.ts b/src/routes/api/docs/[slug]/+server.ts index 89144d9..f53d0cb 100644 --- a/src/routes/api/docs/[slug]/+server.ts +++ b/src/routes/api/docs/[slug]/+server.ts @@ -35,6 +35,6 @@ export async function GET({ params }) { }); } catch (err) { console.error(`Error reading documentation file: ${filePath}`, err); - throw error(500, 'Error loading documentation'); + throw error(500, JSON.stringify({ error: 'Error loading documentation', err: err })); } } \ No newline at end of file