You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2014/04/09 23:42:19 UTC

git commit: CB-6381 unexpected error object [WP8]

Repository: cordova-plugin-device-orientation
Updated Branches:
  refs/heads/dev d315f3b64 -> 051ecbaa7


CB-6381 unexpected error object [WP8]


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/commit/051ecbaa
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/tree/051ecbaa
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/diff/051ecbaa

Branch: refs/heads/dev
Commit: 051ecbaa7f00e213e25ba253355082bcf77100fe
Parents: d315f3b
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Wed Apr 9 14:42:03 2014 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Wed Apr 9 14:42:03 2014 -0700

----------------------------------------------------------------------
 src/wp/Compass.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation/blob/051ecbaa/src/wp/Compass.cs
----------------------------------------------------------------------
diff --git a/src/wp/Compass.cs b/src/wp/Compass.cs
index c9e1c4d..d1ce894 100644
--- a/src/wp/Compass.cs
+++ b/src/wp/Compass.cs
@@ -142,7 +142,7 @@ namespace WPCordovaClassLib.Cordova.Commands
         {
             if (!DeviceCompass.IsSupported)
             {
-                DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR, "{code:" + Not_Supported + "}"));
+                DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR, Not_Supported));
             }
             else
             {