summaryrefslogtreecommitdiff
path: root/src/api/streaming.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-01-06 12:30:35 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-01-06 12:30:35 +0900
commit89a3d6789cb1ed00b0082b6074fe59b3a8033464 (patch)
treec96c2416b055347826dcece2f27b90ee7cc268b8 /src/api/streaming.ts
parentRefactor: Rename userkey --> access-token (diff)
downloadsharkey-89a3d6789cb1ed00b0082b6074fe59b3a8033464.tar.gz
sharkey-89a3d6789cb1ed00b0082b6074fe59b3a8033464.tar.bz2
sharkey-89a3d6789cb1ed00b0082b6074fe59b3a8033464.zip
[API] Improve: Better error message
Diffstat (limited to 'src/api/streaming.ts')
-rw-r--r--src/api/streaming.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/streaming.ts b/src/api/streaming.ts
index 49269ac445..7a8d2d4354 100644
--- a/src/api/streaming.ts
+++ b/src/api/streaming.ts
@@ -68,7 +68,7 @@ function authenticate(connection: websocket.connection, token: string): Promise<
});
if (accessToken == null) {
- return reject('invalid token');
+ return reject('invalid signature');
}
// Fetch user