Skip to content

Commit

Permalink
Fix set logic to check for error code on failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmalburn committed Dec 7, 2014
1 parent a98c0b9 commit b6855f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/JavaScript/SCORM_API_wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,8 @@ pipwerks.SCORM.data.set = function(parameter, value){

} else {

errorCode = debug.getCode();

trace(traceMsgPrefix +"failed. \nError code: " +errorCode +". \nError info: " +debug.getInfo(errorCode));

}
Expand Down

0 comments on commit b6855f4

Please sign in to comment.