diff --git a/Canvas2ImagePlugin.m b/Canvas2ImagePlugin.m index 2515629..0ad669a 100644 --- a/Canvas2ImagePlugin.m +++ b/Canvas2ImagePlugin.m @@ -38,7 +38,7 @@ - (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error context // Show error message... NSLog(@"ERROR: %@",error); CDVPluginResult* result = [CDVPluginResult resultWithStatus: CDVCommandStatus_ERROR messageAsString:error.description]; - [self.webView stringByEvaluatingJavaScriptFromString:[result toSuccessCallbackString: self.callbackId]]; + [self.webView stringByEvaluatingJavaScriptFromString:[result toErrorCallbackString: self.callbackId]]; } else // No errors {