Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Always helps to read the code before applying. Fixed issue #1.

  • Loading branch information...
commit 4dc335a006839d825b1e8a59f26637bb2541d1fa 1 parent 44bd098
Vilhelm K. Vardøy authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  spotify.c
3  spotify.c
View
@@ -103,8 +103,7 @@ PHP_METHOD(Spotify, __construct)
error = sp_session_create(&config, &session);
if (SP_ERROR_OK != error) {
- error_string = strcat("Unable to create session: ", sp_error_message(error));
- zend_throw_exception((zend_class_entry*)zend_exception_get_default(), error_string, 0 TSRMLS_CC);
+ zend_throw_exception((zend_class_entry*)zend_exception_get_default(), sp_error_message(error), 0 TSRMLS_CC);
return;
}
Please sign in to comment.
Something went wrong with that request. Please try again.