Started adding in error codes.

This commit is contained in:
Peter Camilleri 2015-02-10 12:16:54 -05:00
parent c94141db29
commit 4558790b95
4 changed files with 4 additions and 4 deletions

2
.gitignore vendored
View file

@ -10,7 +10,7 @@ Gemfile.lock
InstalledFiles
_yardoc
coverage
doc/
doc/.~lock.*
lib/bundler/man
pkg
rdoc

Binary file not shown.

View file

@ -52,7 +52,7 @@ module XfOOrth
current = self[symbol]
unless expect.include?(current)
error "Invalid value for #{symbol}: #{current.inspect} not #{expect}"
error "F10: Invalid value for #{symbol}: #{current.inspect} not #{expect}"
end
true
@ -87,7 +87,7 @@ module XfOOrth
if (sym = SymbolMap.map(name))
@data.delete(sym)
else
error "Unable to remove local method #{name}"
error "F90: Unable to remove local method #{name}"
end
end

View file

@ -85,7 +85,7 @@ module XfOOrth
#Error: Unable to find a specification.
def spec_error
error "Unable to find a spec for #{@name} (#{@symbol.inspect})"
error "F11: Unable to find a spec for #{@name} (#{@symbol.inspect})"
end
end