ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: "headius (Charles Nutter) via ruby-core" <ruby-core@ml.ruby-lang.org>
To: ruby-core@ml.ruby-lang.org
Cc: "headius (Charles Nutter)" <ruby-core@ml.ruby-lang.org>
Subject: [ruby-core:113441] [Ruby master Bug#19168] "such file" is bad grammar
Date: Wed, 10 May 2023 00:35:39 +0000 (UTC)	[thread overview]
Message-ID: <redmine.journal-103017.20230510003539.52581@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-19168.20221201220346.52581@ruby-lang.org

Issue #19168 has been updated by headius (Charles Nutter).


Note that this verbiage is similar to the standard ENOENT message: "No such file or directory". I suspect this message was just modified for load/require purposes.

----------------------------------------
Bug #19168: "such file" is bad grammar
https://bugs.ruby-lang.org/issues/19168#change-103017

* Author: masterleep2 (Bill Lipa)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [arm64-darwin22]
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
The error message for a missing required file has bad grammar:

$ irb   
irb(main):001:0> require 'wuxx'
<internal:/opt/local/lib/ruby3.1/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- wuxx (LoadError)

The "such" should be removed. "cannot load file" reads more normally in English.




-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

  parent reply	other threads:[~2023-05-10  0:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-01 22:03 [ruby-core:111136] [Ruby master Bug#19168] "such file" is bad grammar masterleep2 (Bill Lipa)
2022-12-12 11:38 ` [ruby-core:111260] " zzak (Zak Scott)
2022-12-12 12:31 ` [ruby-core:111261] " nobu (Nobuyoshi Nakada)
2023-02-13  0:05 ` [ruby-core:112386] " rubyFeedback (robert heiler) via ruby-core
2023-05-10  0:32 ` [ruby-core:113440] " jeremyevans0 (Jeremy Evans) via ruby-core
2023-05-10  0:35 ` headius (Charles Nutter) via ruby-core [this message]
2023-05-12  4:18 ` [ruby-core:113457] " masterleep2 (Bill Lipa) via ruby-core

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-103017.20230510003539.52581@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    --cc=ruby-core@ml.ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).