summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/trace/chunked_io.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/ci/trace/chunked_io.rb')
-rw-r--r--lib/gitlab/ci/trace/chunked_io.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/ci/trace/chunked_io.rb b/lib/gitlab/ci/trace/chunked_io.rb
index 8c6fd56493f..be3442675d6 100644
--- a/lib/gitlab/ci/trace/chunked_io.rb
+++ b/lib/gitlab/ci/trace/chunked_io.rb
@@ -50,7 +50,7 @@ module Gitlab
-1
end
- raise ArgumentError, 'new position is outside of file' if new_pos < 0 || new_pos > size
+ raise ArgumentError, _('new position is outside of file') if new_pos < 0 || new_pos > size
@tell = new_pos
end
@@ -141,7 +141,7 @@ module Gitlab
# rubocop: disable CodeReuse/ActiveRecord
def truncate(offset)
- raise ArgumentError, 'Outside of file' if offset > size || offset < 0
+ raise ArgumentError, _('Outside of file') if offset > size || offset < 0
return if offset == size # Skip the following process as it doesn't affect anything
@tell = offset