]> git.openstreetmap.org Git - rails.git/commitdiff
Make error messages more helpful
authorRichard Fairhurst <richard@systemed.net>
Tue, 21 Apr 2009 11:27:03 +0000 (11:27 +0000)
committerRichard Fairhurst <richard@systemed.net>
Tue, 21 Apr 2009 11:27:03 +0000 (11:27 +0000)
app/controllers/amf_controller.rb

index 72985554c1967dd04ea1d2e82cf8fc4b8aecb24c..d8d7ce3c4daed893dbd58ab5d704ccecd637a3a9 100644 (file)
@@ -520,7 +520,7 @@ class AmfController < ApplicationController
     return [-1, "The relation has already been deleted."]
   rescue OSM::APIError => ex
     # Some error that we don't specifically catch
-    return [-2, "Something really bad happened :-( ."]
+    return [-2, "An unusual error happened (in 'putrelation')."]
   end
 
   # Save a way to the database, including all nodes. Any nodes in the previous
@@ -644,7 +644,7 @@ class AmfController < ApplicationController
     return [-1, "The point has already been deleted."]
   rescue OSM::APIError => ex
     # Some error that we don't specifically catch
-    return [-2, "Something really bad happened :-(."]
+    return [-2, "An unusual error happened (in 'putway')."]
   end
 
   # Save POI to the database.
@@ -707,7 +707,7 @@ class AmfController < ApplicationController
     return [-1, "The point has already been deleted"]
   rescue OSM::APIError => ex
     # Some error that we don't specifically catch
-    return [-2, "Something really bad happened :-()"]
+    return [-2, "An unusual error happened (in 'putpoi')."]
   end
 
   # Read POI from database
@@ -782,7 +782,7 @@ class AmfController < ApplicationController
     return [-1, "The way has already been deleted."]
   rescue OSM::APIError => ex
     # Some error that we don't specifically catch
-    return [-2, "Something really bad happened :-( ."]
+    return [-2, "An unusual error happened (in 'deleteway')."]
   end